From 7b06b49abe6f909623b4ce62ce9891fa826cc069 Mon Sep 17 00:00:00 2001 From: Jason Coward Date: Tue, 29 Aug 2023 14:04:32 -0600 Subject: [PATCH] Add missing namespaces partition to cache refresh process (#16431) --- core/src/Revolution/Processors/System/ClearCache.php | 1 + core/src/Revolution/modCacheManager.php | 1 + 2 files changed, 2 insertions(+) diff --git a/core/src/Revolution/Processors/System/ClearCache.php b/core/src/Revolution/Processors/System/ClearCache.php index 0a0fc5ed1e1..707d0fed2c4 100644 --- a/core/src/Revolution/Processors/System/ClearCache.php +++ b/core/src/Revolution/Processors/System/ClearCache.php @@ -133,6 +133,7 @@ public function getPartitions() $partitions['system_settings'] = []; $partitions['context_settings'] = ['contexts' => $contextKeys]; + $partitions['namespaces'] = []; if ($this->modx->getOption('cache_db', null, false)) { $partitions['db'] = []; diff --git a/core/src/Revolution/modCacheManager.php b/core/src/Revolution/modCacheManager.php index ffe29091380..511e3b195e2 100644 --- a/core/src/Revolution/modCacheManager.php +++ b/core/src/Revolution/modCacheManager.php @@ -580,6 +580,7 @@ public function refresh(array $providers = [], array &$results = []) 'auto_publish' => ['contexts' => array_diff($contexts, ['mgr'])], 'system_settings' => [], 'context_settings' => ['contexts' => $contexts], + 'namespaces' => [], 'db' => [], 'media_sources' => [], 'lexicon_topics' => [],