WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] How to not cache the WP bar ? (6 posts)

  1. evo252
    Member
    Posted 2 years ago #

    Hello,

    I'd like to use the cache for both logged out and logged in users. Is there a way to cache all pages of the site except the admin bar on the top, so the site is delivered as cached but not the top wp bar ?

    I have another question. I'm working on Buddypress and I need to tell W3TC to not cache private messages. In the "Never cache the following pages:" options, how to tell W3TC to not cache these pages :
    /members/USERNAME/messages
    In fact, usernames are different according who is logged in... And I don't want to tell W3TC to not cache just /members/, I need this part to be cached.

    Thanks.

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Make sure don't cache pages for logged in users is checked (the default setting).

  3. voyados
    Member
    Posted 2 years ago #

    If you check "don't cache pages for logged in users" then... logged in users do not enjoy cached paged.

    So it's not possible to have both ? I mean: being a logged in users using wp top admin bar and browse cached pages ?

  4. evo252
    Member
    Posted 2 years ago #

    Yes, that's exactly what I need, a separate cache, one for logged out users, one for logged in users... It would improve specifically websites which have big online communities (especially for wordpress blog with thousand and thousand online members which have private content only viewable by logged in users or buddypress communities).

  5. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    Your request is not as simple as you make it because there are elements (some significant others not) that are customized for each visitor, so that means each visitor gets it's own cache, which is the opposite of what caching is supposed to realize. Anyway, fragment caching will give you a bit better performance and still allow parts of templates to be dynamic. It's also worth noting that database and object caching reduce the execution time for generating pages which helps sites with lots of authenticated users, that's (one of the reasons) why I added that.

  6. evo252
    Member
    Posted 2 years ago #

    Thank you very much for these details I didn't know Frederick !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic