protected function CoordinatedWriteCounterTrait::_doMarkAsOutdated in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/CoordinatedWriteCounterTrait.php \Drupal\supercache\Cache\CoordinatedWriteCounterTrait::_doMarkAsOutdated()
Mark as outdated.
2 calls to CoordinatedWriteCounterTrait::_doMarkAsOutdated()
- CoordinatedWriteCounterTrait::doMarkAsOutdatedExplicitCall in src/
Cache/ CoordinatedWriteCounterTrait.php - To be called by the implementing class whenever it wants to persistent the last invalidation.
- CoordinatedWriteCounterTrait::markAsOutdated in src/
Cache/ CoordinatedWriteCounterTrait.php - Notify that a write has happened, it does not inmediately invalidate the persistent storage.
File
- src/
Cache/ CoordinatedWriteCounterTrait.php, line 185
Class
- CoordinatedWriteCounterTrait
- Used by components to coordinate invalidations between a volatile and a persistent storage.
Namespace
Drupal\supercache\CacheCode
protected function _doMarkAsOutdated($lastWriteLocal) {
$this
->setFastStorage($this->writeKey, $this->lastWrite);
$this
->setPersistentStorage($this->writeKey, [
'head' => $this
->getHeadId(),
'timestamp' => $lastWriteLocal,
]);
}