Support » Plugins » [Plugin: WP Super Cache] Do NOT cache to logged in users?

  • Just wondering if there’s a way that I can NOT cache the pages served out to logged in users. Using our site more as a CMS and the only people ‘logged in’ are going to be administrators that don’t need caching (and also don’t want it caching things like “edit this post” links etc.)


    If there’s any way to not cache small parts of templates without having to churn them out to separate PHP files or JS that would be great – would probably serve the same purpose.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Logged in users only see wp-cached pages, and logged out users will see different pages. You don’t need to worry about the “edit this post” link appearing to anonymous users..

    You’ll have to use JS to make parts of your page dynamic. By running PHP you remove all the advantages of caching!

    I just recently tried using “private posts” that are available to a specific subset of members. Not just “all” logged in users.

    We want our actual paying members to be able to view private posts, but general internet users/subscribers not. I use “Role Manager” plugin to choose the members and their ability to read private posts.

    Not using “password protected posts”

    My solution would be to have super-cache enabled, but wp-cache disabled for logged in users, just like russellgreenwood.

    All I’ve done is reduce the “expiry time” from 3600 default to 1 second. 0 seconds didn’t work. Hopefully, this doesn’t increase the load on the server too much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Super Cache] Do NOT cache to logged in users?’ is closed to new replies.