Quick Cache (Speed Without Compromise)
[Plugin: Quick Cache ( Speed Without Compromise )] Enable clear cache button for admins in WPMU (3 posts)

  1. luetkemj
    Posted 4 years ago #

    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?


  2. cruizc
    Posted 4 years ago #

    I am also looking for an answer to this question!

  3. klaus2000
    Posted 3 years ago #

    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"))
    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic