0

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.

2
  • 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
    Jul 14 '15 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
    Jul 14 '15 at 14:55
3

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
  • 1
    One could argue that this is no faster than using the flush caches link admin menu already provides.
    – rooby
    Sep 1 '15 at 4:33
2

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 .

2
  • Could you please elaborate on how to create such hotkey with Devel?
    – user16289
    Jul 17 '15 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 . Jul 17 '15 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy