• Please give me an easy toggle switch to exclude caching of content types: posts, pages, products, etc.

    Mainly, I’m looking for the ability to exclude all PAGES. The reason being that I have private pages for a WPML site and logged in users keep seeing each other’s content no matter what options I try (ESI, etc).

    PS: I’m an advanced user running on LS ownership license, btw.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    If those private pages are created by your php scripts, I think you can send LiteSpeed_Cache_API::set_cache_private() to make other users cache copies won’t be polluted.

    Thread Starter treeflips

    (@treeflips)

    Lol…umm, where do I put that? Or was that a CLI command?

    Plugin Support Hai Zheng?

    (@hailite)

    Put into your private pages template file. The purpose is to claim those pages cache private. This is a better way than just excluding all pages.

    Plugin Support Hai Zheng?

    (@hailite)

    Also, if you did want to exclude products pages from caching, you can add the prefix of those pages. They should have a /product/ prefix in url.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘EXCLUDE all pages’ is closed to new replies.