You are here

function devel_cache_clear in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \devel_cache_clear()
  2. 7 devel.pages.inc \devel_cache_clear()

Menu callback; clears all caches, then redirects to the previous page.

1 string reference to 'devel_cache_clear'
devel_menu in ./devel.module
Implementation of hook_menu().

File

./devel.module, line 1218

Code

function devel_cache_clear() {

  // If you used to implement our own cache clear hook, implement hook_flush_caches instead. See drupal_flush_all_caches()
  drupal_flush_all_caches();
  drupal_set_message('Cache cleared.');
  drupal_goto();
}