Update to Drupal 8.2.6. For more information, see https://www.drupal.org/project/drupal/releases/8.2.6
This commit is contained in:
parent
db56c09587
commit
f1e72395cb
588 changed files with 26857 additions and 2777 deletions
|
|
@ -1031,8 +1031,17 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
|
|||
$prefix = Settings::getApcuPrefix('class_loader', $this->root);
|
||||
$apc_loader = new ApcClassLoader($prefix, $this->classLoader);
|
||||
$this->classLoader->unregister();
|
||||
$apc_loader->register();
|
||||
// The optimized classloader might be persistent and store cache misses.
|
||||
// For example, once a cache miss is stored in APCu clearing it on a
|
||||
// specific web-head will not clear any other web-heads. Therefore
|
||||
// fallback to the composer class loader that only statically caches
|
||||
// misses.
|
||||
$old_loader = $this->classLoader;
|
||||
$this->classLoader = $apc_loader;
|
||||
// Our class loaders are preprended to ensure they come first like the
|
||||
// class loader they are replacing.
|
||||
$old_loader->register(TRUE);
|
||||
$apc_loader->register(TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue