You are here

public static function fastcache::cache_clear_all in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/fastcache.inc \fastcache::cache_clear_all()

cache_clear_all wrapper.

4 calls to fastcache::cache_clear_all()
DatabaseSchema_sqlsrv::createTable in sqlsrv/schema.inc
{@Inheritdoc}
DatabaseSchema_sqlsrv::dropTable in sqlsrv/schema.inc
Override DatabaseSchema::dropTable().
DatabaseSchema_sqlsrv::queryColumnInformationInvalidate in sqlsrv/schema.inc
Clear introspection cache for a specific table.
DatabaseSchema_sqlsrv::renameTable in sqlsrv/schema.inc
Override DatabaseSchema::renameTable().

File

sqlsrv/fastcache.inc, line 104

Class

fastcache
Static caching layer.

Code

public static function cache_clear_all($cid = NULL, $bin = NULL, $wildcard = FALSE, $volatile = FALSE) {
  static::FixKeyAndBin($cid, $bin);
  if (!$volatile && !isset(static::$fastcacheitems[$bin])) {
    static::cache_load_ensure($bin, TRUE);
  }

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