• Hey team,
    I am planning to use the plugin on my website. While I was testing it, I realized that the cache buster is being added for ALL logged-in users.

    Can we enable the cache buster ONLY for administrators? That way the plugin can serve cached HTML to logged-in members. We can always set individual extensions in the settings of the page.

    I tried searching but I could not find it in the support forum.

    Thanks.

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

    (@isaumya)

    Hi @amarudare,
    Logged in users should never even be cached whether it is an admin or not. The reason behind it is that the logged-in users can perform many dynamic operations for which cache needs to be disabled.

    If the cache buster bothers you and your visitors, you can always enable the Worker Mode which does not use any cache buster whatsoever.

    Thread Starter WP_User

    (@amarudare)

    Agreed.
    My goal is to serve fast cached users to non-members and disable cache for members.
    I tried Service Workers but am apprehensive of hitting the daily limit. Can you please guide me on how to change the cache buster name?
    Thanks!

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @amarudare,

    Can you please guide me on how to change the cache buster name?

    – It’s already in the FAQ tab inside the plugin settings under the Advanced Questions.
    Screenshot: https://i.imgur.com/RyOhpYi.png

    So, basically inside the wp-config.php you add:

    define( 'SWCFPC_CACHE_BUSTER', 'example' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Cache only for Admin Users – Membership Website’ is closed to new replies.