Skip to content

Commit 833a5d6

Browse files
authored
Merge pull request #5 from Flowpack/bugfix/error-with-single-cachetag
BUGFIX: Prevent error with single cache tag
2 parents 7bafb8a + 4c2a60d commit 833a5d6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Classes/Http/RequestStorageComponent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public function handle(ComponentContext $componentContext)
5151
$cacheTags = $response->getHeader('X-CacheTags') ;
5252
$entryIdentifier = md5((string)$request->getUri());
5353

54+
if (!is_array($cacheTags)) {
55+
$cacheTags = [$cacheTags];
56+
}
57+
5458
$publicLifetime = 0;
5559
if ($this->maxPublicCacheTime > 0) {
5660
if ($lifetime > 0 && $lifetime < $this->maxPublicCacheTime) {

0 commit comments

Comments
 (0)