DatabaseCacheTagsChecksum::ensureTableExists

protected DatabaseCacheTagsChecksum::ensureTableExists() Check if the cache tags table exists and create it if not. File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 144 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); // Create the cache tags table if it does not exist.

DatabaseCacheTagsChecksum::catchException

protected DatabaseCacheTagsChecksum::catchException(\Exception $e) Act on an exception when cache might be stale. If the {cachetags} table does not yet exist, that's fine but if the table exists and yet the query failed, then the cache is stale and the exception needs to propagate. Parameters \Exception $e: The exception. Throws \Exception File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 202 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementati

DatabaseCacheTagsChecksum::calculateChecksum

protected DatabaseCacheTagsChecksum::calculateChecksum(array $tags) Calculates the current checksum for a given set of tags. Parameters array $tags: The array of tags to calculate the checksum for. Return value int The calculated checksum. File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 105 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected function calculateChecksum(a

DatabaseCacheTagsChecksum::$tagCache

Contains already loaded cache invalidations from the database. Type: array File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 25 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected $tagCache = array();

DatabaseCacheTagsChecksum::$invalidatedTags

A list of tags that have already been invalidated in this request. Used to prevent the invalidation of the same cache tag multiple times. Type: array File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 34 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected $invalidatedTags = array();

DatabaseCacheTagsChecksum::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 18 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code protected $connection;

DatabaseCacheTagsChecksum

Cache tags invalidations checksum implementation that uses the database. Hierarchy class \Drupal\Core\Cache\DatabaseCacheTagsChecksum implements CacheTagsChecksumInterface, CacheTagsInvalidatorInterface File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 11 Namespace Drupal\Core\Cache Members Name Modifiers Type Description DatabaseCacheTagsChecksum::$connection protected property The database connection. DatabaseCacheTagsChecksum::$invalidatedTags pr

DatabaseBackendFactory::__construct

DatabaseBackendFactory::__construct(Connection $connection, CacheTagsChecksumInterface $checksum_provider) Constructs the DatabaseBackendFactory object. Parameters \Drupal\Core\Database\Connection $connection: Database connection \Drupal\Core\Cache\CacheTagsChecksumInterface $checksum_provider: The cache tags checksum provider. File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 31 Class DatabaseBackendFactory Namespace Drupal\Core\Cache Code function __construct(Connect

DatabaseBackendFactory::get

DatabaseBackendFactory::get($bin) Gets DatabaseBackend for the specified cache bin. Parameters $bin: The cache bin for which the object is created. Return value \Drupal\Core\Cache\DatabaseBackend The cache backend object for the specified cache bin. Overrides CacheFactoryInterface::get File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 45 Class DatabaseBackendFactory Namespace Drupal\Core\Cache Code function get($bin) { return new DatabaseBackend($this->connection

DatabaseBackendFactory::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Cache/DatabaseBackendFactory.php, line 14 Class DatabaseBackendFactory Namespace Drupal\Core\Cache Code protected $connection;