Custom caching – how to stop cache build on error
-
How could I use the hooks provided to prevent creating a cache file?
If I catch a error with PHP on my page I wanna prevent the cache to be creaeted. It sucks to have broken page for 12 hours because error got cached to page.
Any advice or meta/pseudo code how I could hook into checks before cache file is created!
I realize I could make my page partially dynamic but that’s not what I want to do.Put I think it defeats the purpose of caching.
Example:
if(error) do_not_create_cache_file(hook into caching process);
- The topic ‘Custom caching – how to stop cache build on error’ is closed to new replies.