From a9e2e9f52400a5a6f9dae6d2e7d7ba0bebe485b6 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 17 Aug 2021 17:43:25 +1200 Subject: [PATCH] [Ref] remove unused variable --- CRM/Core/DAO/AllCoreTables.php | 6 ++---- CRM/Core/Invoke.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Core/DAO/AllCoreTables.php b/CRM/Core/DAO/AllCoreTables.php index 2db1a16acf..6a274847fc 100644 --- a/CRM/Core/DAO/AllCoreTables.php +++ b/CRM/Core/DAO/AllCoreTables.php @@ -366,11 +366,9 @@ class CRM_Core_DAO_AllCoreTables { /** * Reinitialise cache. - * - * @param bool $fresh */ - public static function reinitializeCache($fresh = FALSE) { - self::init($fresh); + public static function reinitializeCache() { + self::init(TRUE); } /** diff --git a/CRM/Core/Invoke.php b/CRM/Core/Invoke.php index 033632d071..ec0087efac 100644 --- a/CRM/Core/Invoke.php +++ b/CRM/Core/Invoke.php @@ -399,7 +399,7 @@ class CRM_Core_Invoke { // For example - when uninstalling an extension. We already set "triggerRebuild" to true for these operations. $config->userSystem->invalidateRouteCache(); } - CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE); + CRM_Core_DAO_AllCoreTables::reinitializeCache(); CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); } -- 2.25.1