• Resolved kieronboz

    (@kieronboz)


    Hi, I have a woocommerce site that naturally we have ‘dont cache for logged in users’ turned on for, because it would otherwise mean people sometimes see each others accounts etc – however, there are certain pages I do want to cache, because they are just directory lists etc, eg the products page, in this case, we have ‘competitions’ as a page, and it lists the competitions we have.

    How do i achieve this? Thanks!

    • This topic was modified 1 year, 5 months ago by kieronboz.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kieronboz

    Thank you for reaching out and I am happy to assist you with this.

    When the option “Don’t cache pages for logged-in users” is enabled, you cannot add any page to caching for logged-in users. There is no option for this.

    As you already mentioned, it’s never recommended to cache pages for logged-in users, especially on e-commerce websites. This being said this can be achieved with a more programmatic approach. Meaning you can disable the option “Don’t cache pages for logged-in users”, exclude the pages that may contain personal info, and make sure that the login button (login area showing the login info of the user) is fired by Ajax, and therefore bypassing the cache.

    This is however, out of W3TC scope and I must advise not to cache anything for logged in users.

    I hope this answers your question.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Cache certain directory pages even for logged in users’ is closed to new replies.