You are here

function _cacheflush_clear_all in CacheFlush 7

Same name and namespace in other branches
  1. 7.3 cacheflush.api.inc \_cacheflush_clear_all()
  2. 7.2 cacheflush.inc \_cacheflush_clear_all()

Clear all caches function.

1 string reference to '_cacheflush_clear_all'
cacheflush_menu in ./cacheflush.module
Implements hook_menu().

File

./cacheflush.inc, line 11
Cacheflusher module inc file with dinamic clear cache functions.

Code

function _cacheflush_clear_all() {

  // Clear all caches.
  drupal_flush_all_caches();
  drupal_set_message(t('All caches cleared.'));
  drupal_goto($_SERVER['HTTP_REFERER']);
}