You are here

function flush_page_cache_requested in Flush page cache 7

Same name and namespace in other branches
  1. 6 flush_page_cache.module \flush_page_cache_requested()

Determine if a flush page cache has been requested.

3 calls to flush_page_cache_requested()
FlushPageCacheDrupalDatabaseCache::get in ./flush_page_cache.cache.inc
Implements DrupalCacheInterface::get().
flush_page_cache_init in ./flush_page_cache.module
Implements hook_init().
flush_page_cache_page_alter in ./flush_page_cache.module
Implements hook_page_alter().
1 string reference to 'flush_page_cache_requested'
FlushPageCacheDrupalDatabaseCache::get in ./flush_page_cache.cache.inc
Implements DrupalCacheInterface::get().

File

./flush_page_cache.module, line 158
Easing the pain when you need to flush...Drupal's cache.

Code

function flush_page_cache_requested() {
  if (empty($_GET['flush_page_cache']) || !user_access('flush page cache')) {
    return FALSE;
  }
  else {
    return TRUE;
  }
}