CacheTagsInvalidator::addInvalidator

public CacheTagsInvalidator::addInvalidator(CacheTagsInvalidatorInterface $invalidator) Adds a cache tags invalidator. Parameters \Drupal\Core\Cache\CacheTagsInvalidatorInterface $invalidator: A cache invalidator. File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 57 Class CacheTagsInvalidator Passes cache tag events to classes that wish to respond to them. Namespace Drupal\Core\Cache Code public function addInvalidator(CacheTagsInvalidatorInterface $invalidator) { $this

CacheTagsInvalidator::$invalidators

Holds an array of cache tags invalidators. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface[] File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 19 Class CacheTagsInvalidator Passes cache tag events to classes that wish to respond to them. Namespace Drupal\Core\Cache Code protected $invalidators = array();

CacheTagsInvalidator

Passes cache tag events to classes that wish to respond to them. Hierarchy class \Drupal\Core\Cache\CacheTagsInvalidator implements CacheTagsInvalidatorInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 10 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheTagsInvalidator::$invalidators protected property Holds an array of cache tags invalidators. CacheTagsInvalidator::addInvalidator public functi

CacheTagsChecksumInterface::reset

public CacheTagsChecksumInterface::reset() Reset statically cached tags. This is only used by tests. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 56 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function reset();

CacheTagsChecksumInterface::isValid

public CacheTagsChecksumInterface::isValid($checksum, array $tags) Returns whether the checksum is valid for the given cache tags. Used when retrieving a cache item in a cache backend, to verify that no cache tag based invalidation happened. Parameters int $checksum: The checksum that was stored together with the cache item. string[] $tags: The cache tags that were stored together with the cache item. Return value bool FALSE if cache tag invalidations happened for the passed in tags since the

CacheTagsChecksumInterface::getCurrentChecksum

public CacheTagsChecksumInterface::getCurrentChecksum(array $tags) Returns the sum total of validations for a given set of tags. Called by a backend when storing a cache item. Parameters string[] $tags: Array of cache tags. Return value string Cache tag invalidations checksum. File core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php, line 32 Class CacheTagsChecksumInterface Provides checksums for cache tag invalidations. Namespace Drupal\Core\Cache Code public function getCurre

CacheTagsChecksumInterface

Provides checksums for cache tag invalidations. Cache backends can use this to check if any cache tag invalidations happened for a stored cache item. To do so, they can inject the cache_tags.invalidator.checksum service, and when a cache item is written, store cache tags together with the current checksum, calculated by getCurrentChecksum(). When a cache item is fetched, the checksum can be validated with isValid(). The service will return FALSE if any of those cache tags were invalidated in th

CacheRouterRebuildSubscriber::onRouterFinished

public CacheRouterRebuildSubscriber::onRouterFinished() File core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php, line 17 Class CacheRouterRebuildSubscriber Clear cache tags when the router is rebuilt. Namespace Drupal\Core\EventSubscriber Code public function onRouterFinished() { // Requested URLs that formerly gave a 403/404 may now be valid. // Also invalidate all cached routing. Cache::invalidateTags(['4xx-response', 'route_match']); }

CacheRouterRebuildSubscriber::getSubscribedEvents

public static CacheRouterRebuildSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $pri

CacheRouterRebuildSubscriber

Clear cache tags when the router is rebuilt. Hierarchy class \Drupal\Core\EventSubscriber\CacheRouterRebuildSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php, line 12 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description CacheRouterRebuildSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to. Overrides EventSu