diff --git a/src/Service/OutputCacheService.php b/src/Service/OutputCacheService.php index 15d42acaf..68873c3ee 100644 --- a/src/Service/OutputCacheService.php +++ b/src/Service/OutputCacheService.php @@ -111,7 +111,9 @@ protected function loadFromCache($key) */ protected function saveToCache($key, $item, $tags = []): void { - \Pimcore\Cache::save($item, $key, $tags, $this->lifetime); + # Increase priority to 1 to make it less likely this cache item is evicted from the + # queue before actually being written + \Pimcore\Cache::save($item, $key, $tags, $this->lifetime, 1); } private function computeKey(Request $request): string