public function ChainedFastRawBackend::onKernelTerminate in Supercache 2.0.x
Same name and namespace in other branches
- 8 src/Cache/ChainedFastRawBackend.php \Drupal\supercache\Cache\ChainedFastRawBackend::onKernelTerminate()
Shutdown functions.
Using __destruct() proved to be problematic with some some cache backends such as couchbase with custom transcoders or the Drupal.org test bot.
But because binaries are not services... we rely on the ChainedFastBackend factory to subscribe to the onKernelTerminate event and call us.
File
- src/
Cache/ ChainedFastRawBackend.php, line 355 - Contains \Drupal\supercache\Cache\ChainedFastRawBackend.
Class
- ChainedFastRawBackend
- Defines a backend with a fast and a consistent backend chain.
Namespace
Drupal\supercache\CacheCode
public function onKernelTerminate() {
$this
->doMarkAsOutdatedExplicitCall();
// Once this is done here, any further invalidations
// must be done as they come.
$this->doMarkAsOutdatedExplicit = FALSE;
}