Skip to content
Snippets Groups Projects

Issue #2985199: Extensions in Multisite Directories Not Registered When Rebuilding Cache

3 files
+ 8
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
1
@@ -28,8 +28,10 @@ function drupal_rebuild($class_loader, Request $request) {
@@ -28,8 +28,10 @@ function drupal_rebuild($class_loader, Request $request) {
restore_error_handler();
restore_error_handler();
restore_exception_handler();
restore_exception_handler();
 
$site_path = DrupalKernel::findSitePath($request);
 
// Force kernel to rebuild php cache.
// Force kernel to rebuild php cache.
PhpStorageFactory::get('twig')->deleteAll();
PhpStorageFactory::get('twig', $site_path)->deleteAll();
// Bootstrap up to where caches exist and clear them.
// Bootstrap up to where caches exist and clear them.
$kernel = new DrupalKernel('prod', $class_loader);
$kernel = new DrupalKernel('prod', $class_loader);
Loading