public function ChainedFastRawBackendFactory::onKernelTerminate in Supercache 2.0.x
Same name and namespace in other branches
- 8 src/Cache/ChainedFastRawBackendFactory.php \Drupal\supercache\Cache\ChainedFastRawBackendFactory::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.
File
- src/
Cache/ ChainedFastRawBackendFactory.php, line 122 - Contains \Drupal\supercache\Cache\ChainedFastBackendFactory.
Class
- ChainedFastRawBackendFactory
- Defines the chained fast cache backend factory.
Namespace
Drupal\supercache\CacheCode
public function onKernelTerminate(PostResponseEvent $event) {
foreach ($this->caches as $cache) {
$cache
->onKernelTerminate();
}
$this->kernel_terminated = TRUE;
}