You are here

public function FastCache::cache_clear_all in Drupal driver for SQL Server and SQL Azure 8

cache_clear_all wrapper.

File

drivers/lib/Drupal/Driver/Database/sqlsrv/FastCache.php, line 102
fastcache class.

Class

FastCache
Static caching layer.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE) {
  $this
    ->FixKeyAndBin($cid, $bin);
  if (!isset($this->fastcacheitems[$bin])) {
    $this
      ->cache_load_ensure($bin, TRUE);
  }

  // If the cache did not exist, it will still not be loaded.
  if (isset($this->fastcacheitems[$bin])) {
    $this->fastcacheitems[$bin]
      ->clear($cid, $wildcard);
  }
}