• Resolved BasicPro

    (@estudio-de-grabacion)


    Hello!

    First of all, great plugin!

    I want to catch pages for logged-in users, I’ve created an API to dynamically load user content, and I have disabled caching for some user pages.

    It works great, however, I want to disable caching for Admin, Author, etc. Basically, cause it shows the admin bar.

    I select the roles I don’t want to cache pages for in “Don’t cache pages for following user roles” and I deselect “Don’t cache pages for logged in users”. However, I still get cached pages as admin and also those pages are served to regular users.

    Any thoughts?

    Regards
    Dídac

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    Page Cache limited by user roles works with cookies, which are set only on login. Did you logout and login after saving the settings? Maybe you didn’t have the cookie required to determine if the cached page should be displayed or not. Also, if you’re using NginX, don’t forget to reload the configuration as the nginx.conf file has been modified.

    Thread Starter BasicPro

    (@estudio-de-grabacion)

    Thank you very much for your fast reply!

    Logging out and logging-in did the trick, I also reloaded Nginx but I didn’t see any new rules. I don’t think W3 changes my config automatically, is it supposed to? There’s a Nginx.conf file in the root of WordPress but is empty. I manually add the rules in sites-available.

    I’m gonna create another ticket about the browser rules cause they cause 404 issues in my site.

    Thanks!!

    Plugin Contributor gidomanders

    (@gidomanders)

    Yes, the nginx file should be updated automatically. I think there is a permission issue not allowing the plugin to write to the nginx.conf file in the root directory.

    Thread Starter BasicPro

    (@estudio-de-grabacion)

    Thanks for the update. The permissions in nginx.conf are correct, and the owner www-data. If I do the compatibility check I get

    WordPress Resources
    /home/masteringbox.com/nginx.conf: OK
    /home/masteringbox.com/wp-content: OK
    /home/masteringbox.com/wp-content/uploads/2018/06: OK
    Fancy permalinks: /%postname%/
    WP_CACHE define: Defined (true)
    URL rewrite: Enabled
    Network mode: No

    Anyway, that doesn’t bother me, in fact, I prefer to update them myself to make sure there are no conflicts.

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