Is there any easy way to create a keyboard hotkey to flush all caches in a Drupal site?, instead of going to Admin menu Drupal icon and click that time and again? Thx.

  • 1
    Look at Drush, or set up your Cron Jobs. You shouldn't need to manually clear the cache so often that it needs a keyboard shortcut.
    – Beebee
    Commented Jul 14, 2015 at 14:54
  • 1
    Or even better, turn off caching altogether when you're developing. Then turn it back on when you're done.
    – Beebee
    Commented Jul 14, 2015 at 14:55

2 Answers 2


If you've enabled the search bar component on Admin menu you can search your way to it.

Admin menu's search components

  1. Enable the Search Bar component on the configuration page (/admin/config/administration/admin_menu).
  2. Type "flu.." or enough characters to list only the "Flush all caches" menu item.
  3. Press the tab key to highlight and the enter key to trigger the "Flush all caches" menu item.

Searching through admin menu's items

  • 1
    One could argue that this is no faster than using the flush caches link admin menu already provides.
    – rooby
    Commented Sep 1, 2015 at 4:33

Devel module also has such feature , you can access that link by enabling module and placing development block somewhere in your access .

Devel has many other facilities for working with drupal .

  • Could you please elaborate on how to create such hotkey with Devel?
    – user16289
    Commented Jul 17, 2015 at 17:59
  • Just Download and Install Devel module , after enabling that go to Structure -> Blocks and you will find a development Block , this Block contains some facilities like "Clear all caches" menu and ability to run PHP Code Directly in a page . Commented Jul 17, 2015 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.