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.
-
1Look 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.– BeebeeJul 14, 2015 at 14:54
-
1Or even better, turn off caching altogether when you're developing. Then turn it back on when you're done.– BeebeeJul 14, 2015 at 14:55
2 Answers
If you've enabled the search bar component on Admin menu you can search your way to it.
- Enable the Search Bar component on the configuration page (/admin/config/administration/admin_menu).
- Type "flu.." or enough characters to list only the "Flush all caches" menu item.
- Press the tab key to highlight and the enter key to trigger the "Flush all caches" menu item.
-
1One could argue that this is no faster than using the flush caches link admin menu already provides.– roobySep 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?– user16289Jul 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 . Jul 17, 2015 at 20:00