Skip to content

Commit

Permalink
Add missing namespaces partition to cache refresh process (#16431)
Browse files Browse the repository at this point in the history
  • Loading branch information
opengeek committed Aug 29, 2023
1 parent 425d64c commit 7b06b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/Revolution/Processors/System/ClearCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = [];
Expand Down
1 change: 1 addition & 0 deletions core/src/Revolution/modCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [],
Expand Down

0 comments on commit 7b06b49

Please sign in to comment.