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::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']); }

CacheFactory::$settings

The settings array. Type: \Drupal\Core\Site\Settings File core/lib/Drupal/Core/Cache/CacheFactory.php, line 21 Class CacheFactory Namespace Drupal\Core\Cache Code protected $settings;

CacheFactory::get

public CacheFactory::get($bin) Instantiates a cache backend class for a given cache bin. By default, this returns an instance of the Drupal\Core\Cache\DatabaseBackend class. Classes implementing Drupal\Core\Cache\CacheBackendInterface can register themselves both as a default implementation and for specific bins. Parameters string $bin: The cache bin for which a cache backend object should be returned. Return value \Drupal\Core\Cache\CacheBackendInterface The cache backend object associated w

CacheFactory

Hierarchy class \Drupal\Core\Cache\CacheFactory implements CacheFactoryInterface, ContainerAwareInterface uses ContainerAwareTrait File core/lib/Drupal/Core/Cache/CacheFactory.php, line 12 Namespace Drupal\Core\Cache Members Name Modifiers Type Description CacheFactory::$defaultBinBackends protected property A map of cache bin to default cache backend service name. CacheFactory::$settings protected property The settings array. CacheFactory::get public funct

CacheFactory::$defaultBinBackends

A map of cache bin to default cache backend service name. All mappings in $settings takes precedence over this, but this can be used to optimize cache storage for a Drupal installation without cache customizations in settings.php. For example, this can be used to map the 'bootstrap' bin to 'cache.backend.chainedfast', while allowing other bins to fall back to the global default of 'cache.backend.database'. Type: array File core/lib/Drupal/Core/Cache/CacheFactory.php, line 34 Class CacheFact

CacheFactory::__construct

public CacheFactory::__construct(Settings $settings, array $default_bin_backends = array()) Constructs CacheFactory object. Parameters \Drupal\Core\Site\Settings $settings: The settings array. array $default_bin_backends: (optional) A mapping of bin to backend service name. Mappings in $settings take precedence over this. File core/lib/Drupal/Core/Cache/CacheFactory.php, line 45 Class CacheFactory Namespace Drupal\Core\Cache Code public function __construct(Settings $settings, array

CachedStorage::resetListCache

public CachedStorage::resetListCache() Clears the static list cache. Overrides StorageCacheInterface::resetListCache File core/lib/Drupal/Core/Config/CachedStorage.php, line 229 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function resetListCache() { $this->findByPrefixCache = array(); }

CachedStorage::readMultiple

public CachedStorage::readMultiple(array $names) Reads configuration data from the storage. Parameters array $names: List of names of the configuration objects to load. Return value array A list of the configuration data stored for the configuration object name that could be loaded for the passed list of names. Overrides StorageInterface::readMultiple File core/lib/Drupal/Core/Config/CachedStorage.php, line 82 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Confi

CachedStorage::__construct

public CachedStorage::__construct(StorageInterface $storage, CacheBackendInterface $cache) Constructs a new CachedStorage. Parameters \Drupal\Core\Config\StorageInterface $storage: A configuration storage to be cached. \Drupal\Core\Cache\CacheBackendInterface $cache: A cache backend used to store configuration. File core/lib/Drupal/Core/Config/CachedStorage.php, line 47 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function __construct(Storag