You are here

public function FileSystemBackend::deleteAll in File Cache 8

Deletes all cache items in a bin.

Overrides CacheBackendInterface::deleteAll

See also

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

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

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

File

src/Cache/FileSystemBackend.php, line 187

Class

FileSystemBackend
A cache backend that stores cache items as files on the file system.

Namespace

Drupal\filecache\Cache

Code

public function deleteAll() {

  // Skip if the persisting cache strategy is used.
  if ($this->strategy === static::PERSIST) {
    return;
  }
  $this
    ->doDeleteAll();
}