Improved cache reading
This commit is contained in:
@@ -145,8 +145,8 @@ class ObjectRetriever implements CustomCacheAndLogInterface {
|
||||
if (!$cachedData) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $cachedData->getOriginalResponse()->getBody()->getContents();
|
||||
|
||||
return (string)$cachedData->getResponse()->getBody(true);
|
||||
}
|
||||
|
||||
private function putIntoCache($id, $data, $ttl) {
|
||||
|
||||
Reference in New Issue
Block a user