how can i disable the page cache programatically for certain conditions?
-
I have a big application running of wordpress, and I was trying out w3tc for caching.
I have my own login and user management system which runs of my own code and database tables, nothing to do with wordpress users..
Almost all the pages on the site render differently if a user is logged in, and the biggest problem with using w3tc is it can’t recognize that. Adding a cookie exception doesn’t work (I guess its only for telling w3tc what not to cache, not when to fetch from the cache, which is what I initially thought).The fragment caching stuff I have seen using mfunc tags is frankly not very neat and usable, so I’d rather just avoid page cache for certain pages when users are logged in.
Is this possible? If there’s a simple hack or a way to programatically disable page cache, it would be awesome.
The benefits of page caching is still too much to loose, because a visitor can do a lot on my website without logging in and registering (and infact most of them do just that), and if I can get a faster experience, atleast for them, it would be awesome.
- The topic ‘how can i disable the page cache programatically for certain conditions?’ is closed to new replies.