From 499ea646e65faae4c6a24c2809afa590ad5b9473 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Thu, 19 Dec 2019 13:41:12 +0200 Subject: [PATCH] Issue #3102065: Add a necessary initialization for the entire system to account for changed config by the end of the installation --- varbase.install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/varbase.install b/varbase.install index bf90b170..6729d28e 100644 --- a/varbase.install +++ b/varbase.install @@ -49,6 +49,20 @@ function varbase_install() { ->getInstanceFromDefinition(VarbaseEntityDefinitionUpdateManager::class) ->applyUpdates(); + // Full flash and clear cash and rebuilding newly created routes. + // After install of extra modules by install: in the .info.yml files. + // In Varbase profile and all Varbase components. + // --------------------------------------------------------------------------- + // * Necessary inlitilization for the entire system. + // * Account for changed config by the end install. + // * Flush all persistent caches. + // * Flush asset file caches. + // * Wipe the Twig PHP Storage cache. + // * Rebuild module and theme data. + // * Clear all plugin caches. + // * Rebuild the menu router based on all rebuilt data. + drupal_flush_all_caches(); + // If Varbase Tour were enabled then redirect to the homepage with activ tour. if (isset($GLOBALS['homepage_with_varbase_tour']) && $GLOBALS['homepage_with_varbase_tour'] == TRUE) { -- GitLab