protected function CacheCollector::persist in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::persist()
Flags an offset value to be written to the persistent cache.
Parameters
string $key: The key that was requested.
bool $persist: (optional) Whether the offset should be persisted or not, defaults to TRUE. When called with $persist = FALSE the offset will be unflagged so that it will not be written at the end of the request.
9 calls to CacheCollector::persist()
- AliasWhitelist::loadMenuPathRoots in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Loads menu path roots to prepopulate cache.
- AliasWhitelist::resolveCacheMiss in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Resolves a cache miss.
- CacheCollectorHelper::resolveCacheMiss in core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheCollectorHelper.php - Resolves a cache miss.
- CacheCollectorHelper::set in core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheCollectorHelper.php - Implements \Drupal\Core\Cache\CacheCollectorInterface::set().
- LibraryDiscoveryCollector::resolveCacheMiss in core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php - Resolves a cache miss.
File
- core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php, line 197 - Contains \Drupal\Core\Cache\CacheCollector.
Class
- CacheCollector
- Default implementation for CacheCollectorInterface.
Namespace
Drupal\Core\CacheCode
protected function persist($key, $persist = TRUE) {
$this->keysToPersist[$key] = $persist;
}