You are here

public function SuperStaticCache::deleteAll in Tome 8

Deletes all cache items in a bin.

Overrides DatabaseBackend::deleteAll

See also

\Drupal\Core\Cache\CacheBackendInterface::invalidateAll()

\Drupal\Core\Cache\CacheBackendInterface::delete()

\Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()

File

modules/tome_static/modules/tome_static_super_cache/src/SuperStaticCache.php, line 29

Class

SuperStaticCache
Decorates the Tome Static cache service to prevent deletions.

Namespace

Drupal\tome_static_super_cache

Code

public function deleteAll() {
  if (isset($GLOBALS[self::FULL_REBUILD_KEY])) {
    parent::deleteAll();
  }
}