[Plugin: W3 Total Cache] bypass page cache flag
-
Hi there,
I’m wondering if there’s some way i can tell W3TC to bypass caching a page. I have a function that does a bunch of regex filtering on the user agent checking for mobile users, then adjusts some images and whatnot in the layout. With W3TC on, the layout ends up looking silly if you visit a page that was cached recently by someone on a mobile device.
Rather than having to add the whole list of all the user agents i’m testing for on the page cache admin page, is there some way i can filter W3TC’s decision to cache a page programmatically?
perhaps something like this:
if ( my_ua_regex_test() ) global $W3TC_page_cache = false;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: W3 Total Cache] bypass page cache flag’ is closed to new replies.