public function ChainedFastRawBackendFactory::onKernelTerminate in Supercache 8
Same name and namespace in other branches
- 2.0.x 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;
}