You are here

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

Tell if cache persistence is enabled. If not, this cache will behave as DRUPAL_STATIC until the end of request.

Only enable this cache if the backend is DrupalWinCache and the lock implementation is DrupalWinCache

2 calls to FastCache::Enabled()
FastCache::cache_load_ensure in drivers/lib/Drupal/Driver/Database/sqlsrv/FastCache.php
Ensure cache binary is statically loaded.
FastCache::set in drivers/lib/Drupal/Driver/Database/sqlsrv/FastCache.php
cache_set wrapper.

File

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

Class

FastCache
Static caching layer.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function Enabled($refresh = FALSE) {
  return !empty($this->cache);
}