Skip to content

Commit 890a47b

Browse files
authored
[BUGFIX] Prefix cache key with 'dlf_' and hash the recordId (kitodo#1744)
1 parent b6c2d76 commit 890a47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/PageGridController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function mainAction(): ResponseInterface
4747

4848
// Access cachemanager for pagegrid
4949
$cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('tx_dlf_pagegrid');
50-
$cacheKey = $this->document->getCurrentDocument()->recordId;
50+
$cacheKey = 'dlf_' . md5($this->document->getCurrentDocument()->recordId);
5151
$cachedData = $cache->get($cacheKey);
5252

5353
$entryArray = [];

0 commit comments

Comments
 (0)