Title: [Plugin: W3 Total Cache] Public caching of admin bar!
Last modified: August 19, 2016

---

# [Plugin: W3 Total Cache] Public caching of admin bar!

 *  [arcUser678](https://wordpress.org/support/users/arcuser678/)
 * (@arcuser678)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/)
 * This is a serious one – but I can’t seem to reproduce it now.
    I’m hoping that
   someone out there can help figure it out…
 * It appears that W3 total cache (0.9.1.3) cached the admin bar of my wp account
   on the live version of a page – in a wp 3.1.2 site. I was on a private development
   server so it never got out to the world – but it freaked me out. I was going 
   to upgrade a rather large multisite install from wp 3.0.5 to 3.1.2 in the next
   week… but now I don’t think so… It’s not an alternative to use another caching
   plugin right now.
 * I was the only one using the site or editing that page at time. It appears w3
   total cache assumed the admin bar was actually part of the page… But I can’t 
   seem to reproduce the results now… FYI – There aren’t any caching servers, load
   balancers, CDN’s, etc… – it’s just a single server running.
 * The rough sequence of events was:
    - I had been editing a page, made some updates, then left that page open for
      a while.
    - There was an autosave about 1-2 minutes after my last edit.
    -  Then I go to look at the page in another browser and my admin bar shows up
      on the page
    -  Then I tried an entirely different machine – a Mac running firefox – which
      I hadn’t ever logged into WP on.
    - I tried logging out and back in more than 10 times, same thing.
    -  Updating the page content was the only thing that cleared the problem out…
    - I was very surprised – and I didn’t check to see if the admin functions actually
      worked, and it was only for the one page I’d been editing.
 * I’ve tried rolling back the page (it was the page type – not a a post) to that
   revision to see if it was still there – but it’s not…

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-w3-total-cache-4/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-w3-total-cache-4/page/2/?output_format=md)

 *  [kmarizo](https://wordpress.org/support/users/kmarizo/)
 * (@kmarizo)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063667)
 * Wow ! I thought I was going crazy, same thing has been happening to me.
 *  Thread Starter [arcUser678](https://wordpress.org/support/users/arcuser678/)
 * (@arcuser678)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063920)
 * Update to my own post – here’s how I can reproduce the error every time (0.9.1.3).
   I just updated to (0.9.2.1) and this appears to have been corrected.
    - Clear the cache your pages/posts, or the entire cache of a site.
    - Visit the page/post(s) that had the cache cleared in a browser that you’re
      also logged into the site with.
    - Now visit the page in a browser that isn’t logged into the site.
    - You’ll see that your page has the admin bar cached for public view – though
      thankfully none of the links work unless you’re logged in.
 *  [kw2](https://wordpress.org/support/users/kw2/)
 * (@kw2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063921)
 * You should check
    “don’t cache pages for logged users” in the page chache settings.(
   or rebuild the cache) But you should open **another** browser to check your website
   then. (You won’t see it minified).
 * I had problems that the cache was rebuild while I was logged in.
    Nobody could
   write a comment, because the cached pages showed me logged in to anybody else.
 *  [mistercyril](https://wordpress.org/support/users/mistercyril/)
 * (@mistercyril)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063946)
 * What about if you have a web site entirely used by logged in users?
 * Does that exclude the possibility of using a caching system?
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063953)
 * Please confirm that the latest release is also fine.
 *  Thread Starter [arcUser678](https://wordpress.org/support/users/arcuser678/)
 * (@arcuser678)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063956)
 * It works fine with 0.9.2.2, I’ll update to 0.9.2.3 in the next week and retest.
 *  [Alexandre Simard](https://wordpress.org/support/users/brocheafoin/)
 * (@brocheafoin)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063966)
 * I’m using 0.9.2.3 and witnessed the behavior mentioned in the original post. 
   Here’s how to reproduce. In a testing environment, where nobody does any page
   requests except you:
    1. Enable page cache, obviously
    2. In the advanced page cache settings, uncheck “Don’t cache pages for logged in
       users”.
    3. Empty the page cache
    4. Make sure the Admin Bar is active on public pages (in your profile settings)
    5. Load any public page in the same browser where you performed the settings (you
       are logged in, so the Admin Bar should be visible)
    6. Open a new browser or log out of the WordPress admin
    7. Load the same pages you loaded in step 5. You should see the Admin Bar (your
       admin bar) even if you’re logged out.
 * I’m not sure there is an easy way to fix this. If “Don’t cache pages for logged
   in users” is checked, you’d want to not generate the cached page when it’s first
   accessed by a logged in user. Yet you’d want logged in users to still see the
   Admin Bar (their Admin Bar) when they hit a cached page. My feeling is that the“
   Don’t cache pages for logged in users” setting should be removed until there’s
   a better way to handle this particular case.
 *  [Alexandre Simard](https://wordpress.org/support/users/brocheafoin/)
 * (@brocheafoin)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063967)
 * Erratum in my last paragraph. The second sentence should start like this:
 * > If “Don’t cache pages for logged in users” is **un**checked
 * My suggestion is that for the time being, logged in user never see cached pages,
   and that the option to change this behavior is removed.
 *  [Marc](https://wordpress.org/support/users/wdwgolfer/)
 * (@wdwgolfer)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063972)
 * Hi all,
 * I can confirm that this issue is still present in Version 0.9.2.4. In fact, I
   had a person send me a message yesterday on Google+ to let me know that when 
   he went to my site, using a link from a blog post I had replied to on another
   site, he was able to see the WP Bar on my home page. He even sent me a screen
   capture of my home page in his browser to show me that the WP Bar was present
   and showed my name and gravatar, etc.
 * From what I can tell, if my experience is consistent, using the WP Bar when not
   logged in when this happens, does not allow you to get into the site Admin pages.
   It takes me to the WP login page.
 * So the appearance of the WP Bar when not logged in may be a bit of a red herring,
   albeit a scary one.
 * I agree with others that caching should not take place at all for logged in users
   and any settings relevant to this behavior be removed.
 * Thanks.
 *  [Tubal](https://wordpress.org/support/users/tubal/)
 * (@tubal)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2063995)
 * I have the same issue on Wp 3.2.1.
    Simple workaround: Disable the Admin Bar.
   This way the admin bar will never show up even you’re logged in and thus, it 
   will not get cached.
 * All you have to do is include this tiny snippet in your functions.php file:
 *     ```
       // REMOVE FRONT-END ADMIN BAR (wp 3.1+)
       // http://codex.wordpress.org/Function_Reference/show_admin_bar
       if (function_exists('show_admin_bar')) {
       	show_admin_bar( false );
       }
       ```
   
 * Hope that helps!!
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2064003)
 * Everyone is not caching pages for logged in users right?
 *  [mjobran](https://wordpress.org/support/users/mjobran/)
 * (@mjobran)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2064004)
 * I have the same problem with the latest release with “do not cache for logged
   in users” un-checked.
 * Anyways, the plugin isn’t caching if I check that option and I couldn’t find 
   a solution for this bug although i paid $100 to your company but you guys did
   not help in this matter.
 * Please help
 *  [MacMacken](https://wordpress.org/support/users/macmacken/)
 * (@macmacken)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2064005)
 * Same problem here (and without caching for logged-in users, of course).
 *  [fdant](https://wordpress.org/support/users/fdant/)
 * (@fdant)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2064011)
 * It happened to me too, and the problem was the browser cache. Clean your browser
   cache and see if the admin bar disappear.
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/#post-2064013)
 * Anyone agree with [@fdant](https://wordpress.org/support/users/fdant/)?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-w3-total-cache-4/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-w3-total-cache-4/page/2/?output_format=md)

The topic ‘[Plugin: W3 Total Cache] Public caching of admin bar!’ is closed to new
replies.

## Tags

 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [wp 3.1](https://wordpress.org/support/topic-tag/wp-3-1/)

 * 16 replies
 * 11 participants
 * Last reply from: [arcUser678](https://wordpress.org/support/users/arcuser678/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-w3-total-cache-4/page/2/#post-2064014)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
