Refactor system search cache handling and update OpenAPI specifications for max results
This commit is contained in:
@@ -652,7 +652,6 @@ function SystemSearchCacheMaintenanceCron(): void
|
||||
|
||||
if ($rebuildRequest !== null) {
|
||||
system_search_cache::clearQueryCaches();
|
||||
system_search_cache::clearIntentCaches();
|
||||
$scope = (string)($rebuildRequest['scope'] ?? 'all');
|
||||
$types = array_values(array_filter(array_map('strval', (array)($rebuildRequest['types'] ?? []))));
|
||||
if ($scope === 'types' && !empty($types)) {
|
||||
|
||||
Reference in New Issue
Block a user