Is there any way to put the 'clear cache' button on the admin toolbar?

Thanks

Comments

jim_at_miramontes’s picture

I always found it really convenient to be able to do a clear cache through the dropdown in D6's Admin Menu. For now, I guess I'm stuck to having a browser tab open on the Performance page.

davidknicker’s picture

Is there a url for the clear cache button? I was looking throught my menu items and its path was "Empty cache". But trying to put it into the navigation menu didnt work. Putting links into the admin toolbar is easy, but did anyone run into the same problem?

bitradiator’s picture

Admin_menu, even though it doesn't have a full D7 release yet, works just fine. You may want to disable the Drupal admin toolbar though.

Hari’s picture

Here is one way to do it that I just figured out. Download and enable the Devel module. Then add a shortcut and name it 'Empty Cache' and give it the path 'devel/cache/clear'.

tomcatuk’s picture

This would be a really useful feature, but it does seem overkill to install a complete module just to enable this functionality. There must be a simpler solution surely - meaning a URL.

p.parshin’s picture

Hello!
I solved this problem, maybe my solution help somebody:
1. Create node with php mode
2. Insert next code:

  drupal_flush_all_caches();
  drupal_set_message('cache flushed.');

3. Add button on the toolbar with links to created node.
Enjoy!

bhosmer’s picture

I'm working on the CacheFlusher module that will add this functionality to the dashboard without the need to install the entire devel module.

gynekolog’s picture

Thank you