DummyTagChecksum.php in Supercache 8
File
src/Cache/DummyTagChecksum.php
View source
<?php
namespace Drupal\supercache\Cache;
use Drupal\Core\Cache\CacheTagsChecksumInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
class DummyTagChecksum implements CacheTagsChecksumInterface {
public function getCurrentChecksum(array $tags) {
if (!empty($tags)) {
throw new \Exception("DummyTagChecksum cannot process tags.");
}
return 0;
}
public function isValid($checksum, array $tags) {
if (!empty($tags) || !empty($checksum)) {
throw new \Exception("DummyTagChecksum cannot process tags and items cannot have a checksum.");
}
return TRUE;
}
public function reset() {
return;
}
}
Classes
Name |
Description |
DummyTagChecksum |
Stub checksum interface, for when you need to use a cache backend
without tag invalidation support. |