You are here

function flush_page_cache_requested in Flush page cache 6

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

Determine if a flush page cache has been requested.

3 calls to flush_page_cache_requested()
cache_get in ./flush_page_cache.cache.inc
Return data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.
flush_page_cache_footer in ./flush_page_cache.module
Implementation of hook_footer().
flush_page_cache_init in ./flush_page_cache.module
Implementation of hook_init().
1 string reference to 'flush_page_cache_requested'
cache_get in ./flush_page_cache.cache.inc
Return data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.

File

./flush_page_cache.module, line 166
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;
  }
}