From af17a3f8b37417f0498b4976191c2c1255bd4693 Mon Sep 17 00:00:00 2001 From: Demian Holderegger Date: Fri, 14 Feb 2020 10:45:35 +0100 Subject: [PATCH] always load from cache (options should be respected on initial load too) --- src/Webling/Cache/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Webling/Cache/Cache.php b/src/Webling/Cache/Cache.php index 3f85257..5a3455e 100644 --- a/src/Webling/Cache/Cache.php +++ b/src/Webling/Cache/Cache.php @@ -132,7 +132,7 @@ public function getObjectBinary($type, $objectId, $url, $options = []) { if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300) { $data = $response->getData(); $this->adapter->setObjectBinary($objectId, $url, $data); - return $data; + return $this->adapter->getObjectBinary($objectId, $url, $options); } } }