How do I enable the clear cache button for regular site admins? I understand that by default you need to be a superadmin to have access to the button.
Is there a workaround?
How do I enable the clear cache button for regular site admins? I understand that by default you need to be a superadmin to have access to the button.
Is there a workaround?
I am also looking for an answer to this question!
To enable the clear cache button for regular site admins you can do the following steps:
Open the file wp-content/plugins/quick-cache/includes/classes/menu-pages.inc.php. Then search for the function "add_admin_bar_nodes".
Inside this function on the second line replace
if ((!is_multisite () && current_user_can ("edit_plugins"))
by
if ((!is_multisite () && current_user_can ("edit_posts"))
and safe the file.
Notice that instead of "edit_posts" you can take any other admin-permission. And remember not to update the plugin later on. If you do you have to hack the plugin again.
This topic has been closed to new replies.