From fbfb2513a9dc5a584c834ba6e8ab44bd4cd7331e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 22 Aug 2023 10:35:41 +1200 Subject: [PATCH] Flush Redis prevnext cache when clearing civicrm_cache --- CRM/Core/Config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Core/Config.php b/CRM/Core/Config.php index 66e59e4264..55093d3613 100644 --- a/CRM/Core/Config.php +++ b/CRM/Core/Config.php @@ -345,6 +345,11 @@ class CRM_Core_Config extends CRM_Core_Config_MagicMerge { CRM_Core_DAO::executeQuery($query); } + // Clear the Redis prev-next cache, if there is one. + // Since we truncated the civicrm_cache table it is logical to also remove + // the same from the Redis cache here. + \Civi::service('prevnext')->deleteItem(); + // also delete all the import and export temp tables self::clearTempTables(); } -- 2.25.1