Skip to content

Commit b433698

Browse files
fix: Handling of no-store was flipped
The internal state variable of $storeResponse was calculated correctly, but the response got stored to cachen when $storeResponse===false. Related: VCLOUD-513
1 parent 4e62857 commit b433698

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Service/ConsumerBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ protected function requestJson(Uri $uri): PromiseInterface
280280
$response = $this
281281
->fetch($uri, $headers)
282282
->then(function(string $result) use ($cacheIdentifier, $storeResponse) {
283-
if (!$storeResponse) {
283+
if ($storeResponse) {
284284
$this->requestsCache->set($cacheIdentifier, $result);
285285
}
286286
return $result;

0 commit comments

Comments
 (0)