• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter munim

    (@munim)

    Okay, I went through w3-total-cache created .htaccess rules for page cache and I think its supposed to work as I initially thought it should. Am I wrong? I have no idea why it doesn’t work now.

    Does the cookie exclusion list mean any request with that cookie will not be served from the page cache? I enabled the page-cache debug messages, and it seems to reject based on cookie only sometimes, when clearly all requests have the cookie. Anyone has any idea what could be going on here?

    Thread Starter munim

    (@munim)

    Okay, I am really sorry for starting this topic without properly researching what is going on. I feel like an idiot posting three messages here before anyone can reply. The page cache stuff works fine. It’s the browser cache that’s interfering here, which makes the older pages appear even after the user has logged in.

    I don’t suppose there could be a way to disable browser caching for html content if a cookie is set?

    Plugin Contributor Frederick Townes

    (@fredericktownes)

    Does the cookie exclusion list mean any request with that cookie will not be served from the page cache?

    Yes so you can set a cookie dynamically and if it’s set in the preferences the page won’t be cached.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how can i disable the page cache programatically for certain conditions?’ is closed to new replies.