WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Allow Editor role to Delete Cache? (13 posts)

  1. housebg
    Member
    Posted 2 years ago #

    I would like to add a link on the Admin Bar for users on my site with Editor role to be able to Delete the Cache on the site.

    I'm currently using Adminimize to hide a number of things from the Editor role. I want to use this plugin on sites I develop for my clients, but they have Editor access (I have admin access) to their sites.

    I tried writing a modified version of the supercache_admin_bar_render into my theme's function file, but it seems that the core code is not allowing this functionality for roles less than admin.

    Obviously, I don't want to edit the plugin itself - so any help to create a function to add this back in would be much appreciated.

    Thanks!

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. housebg
    Member
    Posted 2 years ago #

    Update: I have a custom function that will put the Delete Cache link in the admin bar, but an Editor gets the insufficient privileges message.

    Is there a way I can give Editor role access to just this Delete Cache? Or to everything, and I just use Adminimize to hide everything else...

  3. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    As a hack look at the function that deletes the cache and change the role check. I'll put this on the todo list.

  4. housebg
    Member
    Posted 2 years ago #

    Thanks Donncha. I'll try that, and it would be great to get this on the feature roadmap. I'm finding WP Super Cache indispensable for my clients, particularly those that are hosting on GoDaddy (shudder) :-)

  5. housebg
    Member
    Posted 2 years ago #

    Hi Donncha,

    I haven't been able to figure this out. I've been looking in the files for the delete cache function, but I don't think I'm looking in the right place because I'm not seeing the role check portion to change.

    Could you help point me in the right direction? I need to be able to get the Delete Cache button to show for the Editor role for my clients.

    Thanks!

  6. Skinny_Latte
    Member
    Posted 2 years ago #

    +1 from me too. Would love to see this added. Are we any closer to having it?

  7. housebg
    Member
    Posted 2 years ago #

    I too would love to know where we are with this. I now have (3) clients that I'm having to do their cache deletes manually because I can't assign this to an Editor. Any status? I'll even take an ugly hack at this point...

  8. meshmarketer
    Member
    Posted 1 year ago #

    What would be even better and perhaps more useful would be to delete cache when you click update to a post. I really, really, really would love to have a solution for this.

    And Donncha, I just wanted to say THANK YOU THANK YOU THANK YOU for all the hard work you do. I'll buy you something on your Amazon Wishlist very soon. You rock, man.

  9. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    meshmarketer - the cache should be deleted when you update a post. Use the debug log to figure out why not.

    housebg - try the dev version, it'll update in the next 20 minutes and should allow editors to delete single pages from the admin bar.

    http://ocaoimh.ie/y/2o

  10. meshmarketer
    Member
    Posted 1 year ago #

    I've opened a ticket on your plugin so that we can address it there.

  11. Skinny_Latte
    Member
    Posted 1 year ago #

    Apparently this can be done in the latest version of the plugin. I still can't see the option anywhere when logged in as editor though. Anybody else?

  12. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    @Skinny-Latte Disable caching for known users on the advanced settings page and you'll see a "Delete Cache" link in the admin bar. It only deletes the cache for the current page.

  13. Skinny_Latte
    Member
    Posted 1 year ago #

    Aha, great thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic