simple-cache icon indicating copy to clipboard operation
simple-cache copied to clipboard

Option to show cache to other than admin?

Open LogoLogics2 opened this issue 9 years ago • 3 comments

I have posted this quesstion on the support forum and was asked to put it here: [https://wordpress.org/support/topic/option-to-show-cache-to-other-than-admin/#post-8632555]

It is handy to let other “roles” like a client making smaller changes or updating posts, also be able to purche cache so they can see the actual changes after they make them.

There are multiple times the cache clearly needs to be purched manually.

Simple post and page updates where only some text or images are changed, do not need manual clearing of the cache. However,often after a core or plugin update, layout can get completely messed up, and only purching the cache, shows the normal non messed up layout.

Or for example, changing some colours or layout in customizer, only can be seen after I manually clear the cache…

Would be great if this could be added? love this plugin! Annie

LogoLogics2 avatar Jan 16 '17 19:01 LogoLogics2

Not sure what you are requesting?

tlovett1 avatar Feb 26 '17 07:02 tlovett1

I think I know, cause now I also wonder how to solve this.

Normally, when an admin user makes changes to a website such as updating text widget in footer or navigation menu items, he can then navigate to Simple Cache settings page and purge the cache to make his changes visible on all pages.

However, I have a website with users that have edit_theme_options, so they can edit widgets and menus (and Customizer), but they don't have manage_options capability, so they cannot access Simple Cache settings page and purge the cache when they need to.

I see two possible solutions:

  1. Try to detect such (design) changes and automatically purge the cache, but I haven't checked if there are any hooks in core that could be utilized for this, so it might be not that easy. It could be interesting to see how other caching plugins tackle this.
  2. Add a new screen (perhaps under Tools menu) with purge cache option and a new user capability that can be assigned to users who needs access to that screen. Btw. this screen could be utilized for other cache related actions in the future like #27.

Personally, I favor the second option.

chesio avatar Mar 31 '17 10:03 chesio

Hi,

Sorry I did not get a notification and only see now you have responded on 28th of februari!

Chesio did clarify what I am requesting earlier. I use this plugin: http://themehybrid.com/plugins/members to make sure my clients only have limited access when they log in their dashboard to make some small adjustments in their websites.

However they can not see or use the "purche" cache button like an administrator this way and will think they are doing it wrong because if they can not purche, they can not see the actual changes on their site that just made.

LogoLogics2 avatar Mar 31 '17 12:03 LogoLogics2