Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/StaticCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private function addCacheHeadersToWebResponse(): void
$this->tags->push(...$existingTagsFromHeader);
$this->tags = $this->prepareTags(...$this->tags);

Craft::warning(new PsrMessage('Adding cache tags to response', [
Craft::info(new PsrMessage('Adding cache tags to response', [
'tags' => $this->tags,
]));

Expand Down Expand Up @@ -294,7 +294,8 @@ public function purgeTags(string|StaticCacheTag ...$tags): void

// TODO: make sure we don't go over max header size
Helper::makeGatewayApiRequest([
HeaderEnum::CACHE_PURGE_TAG->value => $tags->implode(','),
// Mapping to string because: https://github.com/laravel/framework/pull/54630
HeaderEnum::CACHE_PURGE_TAG->value => $tags->map(fn(StaticCacheTag $tag) => (string) $tag)->implode(','),
]);
}

Expand Down
Loading