WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] After logging in, new page displays logged out version! (3 posts)

  1. falc0nit3
    Member
    Posted 6 months ago #

    Hi,

    I'm facing a unique problem with my website dealing with login.
    On logging into the site, I have a tab that displays the logged in person's thumbnail and name on top right corner of the website(where the LOGIN button was before). When i navigate to a new post immediately, sometimes, it loads the new post as if i have not logged in at all. (so the LOGIN link shows back and user info is gone).

    So basically the fact that i've now logged in and it should fetch a page with this login details needs to go through. Subsequent navigation of different posts too doesn't fix it. Only if i do a manual refresh of the browser do i get that fixed and then all navigations are fine. This doesn't happen all the time. It's kinda random, so i'm not sure why or what is causing it.

    I have following caches set to ON:
    Browser Cache
    Minify
    Database Cache
    Object Cache.

    I used to think it might have been the page cache being on and i turned it off. Now i'm suspecting it might be the browser cache. But anyone else faced such an issue and know the fix?

    I have 'Don't cache queries for logged in users ' on 'Database Cache' set to true.

    Thanks!

    http://wordpress.org/plugins/w3-total-cache/

  2. falc0nit3
    Member
    Posted 6 months ago #

    I was looking at chrome debug console and noticed that the homepage is almost always being served from the cache. My login scripts redirect to the homepage by default.
    So when a user logs in, it shouldn't serve the homepage from the cache.
    Is there a way i can tell w3 total cache to not to serve the cached version of any page once the user has logged in?

    I see the 'wordpress_logged_in' cookie being set when i log in. Can't the plugin use that cookie info to check when to serve cached and when not to?

  3. falc0nit3
    Member
    Posted 6 months ago #

    I think i might have fixed the problem:
    Essentially you need to tweak the browser cache settings like i suspected. The more you know....

    Check this page for more details.
    http://wordpress.stackexchange.com/questions/87685/wordpress-browser-cache-with-w3-total-cache-doesnt-show-new-posts?rq=1

    Hope it helps someone!

Reply

You must log in to post.

About this Plugin

About this Topic