Title: [Plugin: WP Super Cache] Delete cache button in Admin bar
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] Delete cache button in Admin bar

 *  [hakonorri](https://wordpress.org/support/users/hakonorri/)
 * (@hakonorri)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/)
 * Hi,
    a feature request. Can we get a “Delete Cache and refresh page” button in
   the new Admin bar?
 * thanks,
    Hakon
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Pascal Herbert](https://wordpress.org/support/users/hebbet/)
 * (@hebbet)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024104)
 * yes that would be useful. but it should only clear the cache of current posting
   or page.
 *  [snabbdesign](https://wordpress.org/support/users/snabbdesign/)
 * (@snabbdesign)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024184)
 * Yes, this would be good. You should have the option to let/allow different user
   roles access the button.
 * Option to delete all pages or only delete current page. Maybe two buttons in 
   the admin panel under the update button.
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024199)
 * Good idea.
 *  [Matt Lovett](https://wordpress.org/support/users/mdeluk/)
 * (@mdeluk)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024272)
 * Yeh that would be good! 🙂
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024273)
 * I added this feature a few days ago. Go look at the development version on the“
   Other Versions” page.
 *  [Darko Mitrovic](https://wordpress.org/support/users/darko84/)
 * (@darko84)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024276)
 * Add this code in function.php:
 *     ```
       function my_admin_bar_menu() {
       	global $wp_admin_bar;
       	if ( !is_super_admin() || !is_admin_bar_showing() )
       		return;
       	$wp_admin_bar->add_menu( array(
       	'id' => 'custom_menu',
       	'title' => __( 'Delete Cache'),
       	'href' => 'http://www.yoursite.com/wp-admin/options-general.php?page=wpsupercache&tab=contents' ) );
       }
       add_action('admin_bar_menu', 'my_admin_bar_menu');
       ```
   
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024277)
 * No, just try the development version. Here’s [everything you need to know](http://ocaoimh.ie/2011/11/29/wp-super-cache-scheduler-and-admin-bar-link/)
   all in one handy post. It’s really close to 1.0 so I need testers.
 *  [Chris Van Patten](https://wordpress.org/support/users/chrisvanpatten/)
 * (@chrisvanpatten)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024278)
 * Is there a way to remove this new admin bar link? Hooking into `wp_before_admin_bar_render`
   and removing it by its link ID (presumably `delete-cache`?) with the `remove_menu`
   function isn’t working as I would have expected.
 * Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘[Plugin: WP Super Cache] Delete cache button in Admin bar’ 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/)

 * 8 replies
 * 7 participants
 * Last reply from: [Chris Van Patten](https://wordpress.org/support/users/chrisvanpatten/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-delete-cache-button-in-admin-bar/#post-2024278)
 * Status: not resolved