You are here

function FlushPageCacheDrupalDatabaseCache::get in Flush page cache 7

Implements DrupalCacheInterface::get().

Overrides DrupalDatabaseCache::get

File

./flush_page_cache.cache.inc, line 8
Define flush page cache cache class for Drupal default database caching.

Class

FlushPageCacheDrupalDatabaseCache
@file Define flush page cache cache class for Drupal default database caching.

Code

function get($cid) {

  // Handle flush page cache request by deleting the cached object and returning FALSE.
  if (function_exists('flush_page_cache_requested') && flush_page_cache_requested()) {
    return FALSE;
  }
  return parent::get($cid);
}