From e9a1ea2acee7df07bff2d51cd80aaebdd57f33f6 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 28 Jun 2022 21:17:21 +0100 Subject: [PATCH] Issue #3070747 by immaculatexavier, herved, alexpott, yoruvo: Profile paths are not updated after moving them to other directories --- core/includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index 6af1b4d55826..d122df311328 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -489,7 +489,9 @@ function drupal_flush_all_caches($kernel = NULL) { // Wipe the Twig PHP Storage cache. \Drupal::service('twig')->invalidate(); - // Rebuild theme data that is stored in state. + // Rebuild profile, profile, theme_engine and theme data. + \Drupal::service('extension.list.profile')->reset(); + \Drupal::service('extension.list.theme_engine')->reset(); \Drupal::service('theme_handler')->refreshInfo(); // In case the active theme gets requested later in the same request we need // to reset the theme manager. -- GitLab