Title: EDITORS can delete cache!?
Last modified: April 7, 2019

---

# EDITORS can delete cache!?

 *  [ctrlaltdelete](https://wordpress.org/support/users/ctrlaltdelete/)
 * (@ctrlaltdelete)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/editors-can-delete-cache/)
 * Editors can see the delete cache button on the admin bar, how to stop this?

Viewing 1 replies (of 1 total)

 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/editors-can-delete-cache/#post-11400919)
 * It isn’t possible without PHP. You should unhook actions which adds admin bar.
   An example:
 *     ```
       add_action( 'init', function() {
               if ( ! current_user_can( 'manage_options' ) ) {
                       remove_action( 'admin_init', 'admin_bar_delete_page' );
                       remove_action( 'admin_bar_menu', 'wpsc_admin_bar_render', 99 );
               }
       }, 9 );
       ```
   
 * I didn’t check code, but it should work. You can replace _manage\_options_ with
   other capability.

Viewing 1 replies (of 1 total)

The topic ‘EDITORS can delete cache!?’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Saša](https://wordpress.org/support/users/stodorovic/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/editors-can-delete-cache/#post-11400919)
 * Status: not resolved