Don't cache page UNLESS..
-
I have pages that aren’t completely loading (missing sidebar and footer), I’m trying to find a way to only create a cached version if the page completely loads. I’m just not sure what the best approach is; a few ideas..
– Disable page cache unless something in the footer is triggered?
– Cache page, but remove if page doesn’t completely load?
– Create a script that removes pages from the cache if they don’t have a footer?
– Use JS to check the page once it finishes loading and see if there is a footer or a specific tag. If not use Ajax to call:Purge a single post / page by passing it's ID: if (function_exists('w3tc_pgcache_flush_post')) { w3tc_pgcache_flush_post($post_id); }
Any help would be appreciated!
Thanks!
- The topic ‘Don't cache page UNLESS..’ is closed to new replies.