Refactor system search cache handling and update OpenAPI specifications for max results

This commit is contained in:
Jeppe Bundgaard
2026-07-07 18:59:07 +02:00
parent 084435e9b8
commit 10d1eb5bac
18 changed files with 915 additions and 2054 deletions
-1
View File
@@ -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)) {