Skip to content

Commit

Permalink
Merge pull request #5 from Flowpack/bugfix/error-with-single-cachetag
Browse files Browse the repository at this point in the history
BUGFIX: Prevent error with single cache tag
  • Loading branch information
Sebobo authored Jan 5, 2020
2 parents 7bafb8a + 4c2a60d commit 833a5d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Http/RequestStorageComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public function handle(ComponentContext $componentContext)
$cacheTags = $response->getHeader('X-CacheTags') ;
$entryIdentifier = md5((string)$request->getUri());

if (!is_array($cacheTags)) {
$cacheTags = [$cacheTags];
}

$publicLifetime = 0;
if ($this->maxPublicCacheTime > 0) {
if ($lifetime > 0 && $lifetime < $this->maxPublicCacheTime) {
Expand Down

0 comments on commit 833a5d6

Please sign in to comment.