• Resolved aggk

    (@aggk)


    Hi,

    Advanced cache has been extremely useful for us so that pages doesn’t need to refresh cache every 10 minutes.
    However I believe there is one big drawback, we really need the option for Editor role to be able to ”purge all cache”.
    Most of our sites are updated by ”editors” around 3-4 times/month, on the times that they make updates it would be super-useful with the options for them to click ”purge all cache” -button somewhere.
    Would it be possible for advanced cache to include that option on the dashboard perhaps?
    Right now, since we have set advanced cache to 7 days it can take a long time for these updates to show up everywhere (like on pages that holds grids with latest posts),
    for some reason ”purge all cache” is only available for administrators from WP Engine at the admin panel

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ethan Kennedy

    (@ethankennedy)

    Hey!

    Thank you for the feedback, it’s super helpful!

    I definitely see the need in allowing the option moving forward, but I am a little apprehensive since the plugin isn’t gated to specific selectable user roles at this point in time. I think that functionality would be required before I start adding things explicitly meant to drop all caches on the site, especially since it’s something the WP Engine plugin requires administrator usage for. I’m a little nervous about possible abuse, so I’d want to have the ability to restrict access before adding it. I am not opposed to that change, I just don’t know when I’d be able to get it implemented.

    That said, the varnish cache can be dropped using the “Purge Path” option for the entire site. When a “/” is entered into the box, it regex matches all paths for the site and clears it. This would be a work around in this case for this unless object cache needs to be purged as well.

    Do you have anymore detail on what sort of changes are being made? Are these theme updates, or anything of that nature? If this is part of a pretty typical workflow, it might be something WP Engine could do automatically.

    Thanks!

    Thread Starter aggk

    (@aggk)

    Thank you Ethan,

    We sometimes include excerpts from blog posts or other pages, sometimes in the footer or some banner area across the site but these areas doesn′t reflect updates, because of cache.

    You mentioned:
    “The varnish cache can be dropped using the “Purge Path” option for the entire site…This would be a work around in this case”
    I′m not sure I understand how…is this something that an editor-role could perform from a button or is this a setting that could be triggered after any update to the site?

    Right now I′m using User Role Manager to add manage_options to the editor -role which allows for the Editor-role to see the “purge all cache” -button. the drawback is that I need to hide a lot of other unnecessary options that comes with this.
    …is there any “possible abuse” that we should watch out for with this method?

    Thanks!

    Plugin Author Ethan Kennedy

    (@ethankennedy)

    I see, My apologies, I assumed the editor could see the plugin page, which they can’t.

    The possible abuse would be from someone purging the cache too much, which can cause a load on the site. I don’t think I’d be too worried about it from a one off, but making it a global option could be a concern for other users of the plugin. This is my understanding of why the options is locked down to Administrators.

    This seems like something the WP Engine plugin should do, that is exacerbated by the increased cache time. Since the WP Engine plugin doesn’t allow it, I kind of feel like I shouldn’t overwrite those wishes. I’ll bring it up the next time we revisit the Varnish configuration.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Purge all cache, for editors?’ is closed to new replies.