You are here

protected function CoordinatedWriteCounterTrait::doMarkAsOutdatedExplicitCall in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/CoordinatedWriteCounterTrait.php \Drupal\supercache\Cache\CoordinatedWriteCounterTrait::doMarkAsOutdatedExplicitCall()

To be called by the implementing class whenever it wants to persistent the last invalidation.

2 calls to CoordinatedWriteCounterTrait::doMarkAsOutdatedExplicitCall()
ChainedFastBackend::onKernelTerminate in src/Cache/ChainedFastBackend.php
Shutdown functions.
ChainedFastRawBackend::onKernelTerminate in src/Cache/ChainedFastRawBackend.php
Shutdown functions.

File

src/Cache/CoordinatedWriteCounterTrait.php, line 176

Class

CoordinatedWriteCounterTrait
Used by components to coordinate invalidations between a volatile and a persistent storage.

Namespace

Drupal\supercache\Cache

Code

protected function doMarkAsOutdatedExplicitCall() {
  if ($this->doMarkAsOutdatedExplicit && !empty($this->last_invalidation)) {
    $this
      ->_doMarkAsOutdated($this->last_invalidation);
  }
}