Commit 12b4bfba authored by catch's avatar catch

Issue #2016629 by larowlan, neclimdul, sun, alexpott, jibran, ParisLiakos,...

Issue #2016629 by larowlan, neclimdul, sun, alexpott, jibran, ParisLiakos, donquixote, effulgentsia, msonnabaum: Refactor bootstrap to better utilize the kernel.
parent 8b2d8f39
......@@ -55,6 +55,7 @@ function drupal_rebuild(ClassLoader $classloader, Request $request) {
// Bootstrap up to where caches exist and clear them.
$kernel = new DrupalKernel('prod', $classloader);
$kernel->setSitePath(DrupalKernel::findSitePath($request));
$kernel->prepareLegacyRequest($request);
foreach (Cache::getBins() as $bin) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment