Improved cache reading

This commit is contained in:
2026-06-01 17:45:55 +00:00
parent 58585a6875
commit 5f5a31df68

View File

@@ -145,8 +145,8 @@ class ObjectRetriever implements CustomCacheAndLogInterface {
if (!$cachedData) { if (!$cachedData) {
return null; return null;
} }
return $cachedData->getOriginalResponse()->getBody()->getContents(); return (string)$cachedData->getResponse()->getBody(true);
} }
private function putIntoCache($id, $data, $ttl) { private function putIntoCache($id, $data, $ttl) {