• Resolved sylvainorosys

    (@sylvainorosys)


    Hello,

    I’m trying to set a cache for everyone, except for some users with specific roles (Admin, shop manager, etc)
    In the Page Cache settings, I checked “Don’t cache pages for following user roles” with the roles I want to remove from the cache policy. Unfortunately, the same cache is shared with everyone, the option checked doesn’t seem to work as expected.

    Did I miss something?

    Thanks for the help!
    Sylvain

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sylvainorosys

    Thank you for your question and I am happy to assist you with this.
    I’ve tested the behavior of the “Don’t cache pages for following user roles” and it’s working as expected.
    Make sure that the option “Don’t cache pages for logged-in users” is not checked as this would disable caching for all logged-in users.
    It should look like this:

    Tanks!

    Thread Starter sylvainorosys

    (@sylvainorosys)

    Yes, the “Don’t cache pages for logged-in users” is uncheck.
    I’ve just found my problem. The option for the roles works when the user makes a log in. If he’s already logged, he generates the cache like he is unlogged and the option is not took in consideration. Is there a workaround for this? Do I need to unlog all users for a correct behavior?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sylvainorosys

    Thank you for the information.
    The safest thing to do is unlock all the users in this case as there is no workaround for this.
    The alternative is to disable caching for all logged-in users.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Don’t cache pages for following user roles” does not work’ is closed to new replies.