public function DatabaseBackend::invalidateAll

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

Overrides CacheBackendInterface::invalidateAll

File

drupal/core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 298
Definition of Drupal\Core\Cache\DatabaseBackend.

Class

DatabaseBackend
Defines a default cache implementation.

Namespace

Drupal\Core\Cache

Code

public function invalidateAll() {
  try {
    $this->connection
      ->update($this->bin)
      ->fields(array(
      'expire' => REQUEST_TIME - 1,
    ))
      ->execute();
  } catch (\Exception $e) {
    $this
      ->catchException($e);
  }
}