From 6f70e6e9aae140e4857a1949cd0908400fdd85a7 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 21 Oct 2024 15:02:26 +0200 Subject: [PATCH] upgrade, init persistent_cache for invalidate_user_cache --- upgrade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upgrade.php b/upgrade.php index d27c9c9dc..93e191682 100644 --- a/upgrade.php +++ b/upgrade.php @@ -499,6 +499,11 @@ REPLACE INTO '.PLUGINS_TABLE.' } // Delete cache data + include(PHPWG_ROOT_PATH . 'include/cache.class.php'); + + // invalidate_user_cache will purge persistent_cache so it needs to be instantiated first + $persistent_cache = new PersistentFileCache(); + invalidate_user_cache(true); $template->delete_compiled_templates();