WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3TC Thinks Visitors Are Logged In (Not Serving Cache) (3 posts)

  1. studioheads
    Member
    Posted 1 year ago #

    My w3tc is having an issue with visitors, it thinks all visitors are logged in as it says at the bottom of of the html page source (next to disk enhanced), so they are not being served cached pages. This happens when I select "don't cache for logged in users". I deactivated all plugins still no fix. Hoping to get a fix, it's a pain to keep switching between cache and don't cache for logged in.

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

  2. studioheads
    Member
    Posted 1 year ago #

    also realizing w3tc is leaving cookies that says user is logged in when i, logged out, yes I cleared my cache and tried on different browsers

  3. tomdkat
    Member
    Posted 1 year ago #

    I had a similar problem about 5 months ago. It turned out to be an issue with the theme I was using for the WordPress-based site I maintain. Apparently, one of the theme functions called "is_user_logged_in()" which ended up getting the "wordpress_logged_in[HASH]" cookie to be dropped. As a result, W3 Total Cache and another plugin I use thought a visitor to the site had been logged in. In my case, I simply commented out the call to "is_user_logged_in()" and I never found out what caused that cookie to be dropped.

    I submitted a WordPress bug report and working with a developer, I found the "is_user_logged_in()" function, itself, wasn't doing anything wrong so there's something my theme is doing that was causing the issue.

    So, if you're using a custom theme, see if the caching issues persist if you temporarily switch to one of the "stock" WordPress themes.

    Peace...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic