Skip to content

Commit 2b0dfc6

Browse files
authored
Merge pull request #71 from craftcms/bugfix/tag-invalidation
Fix tag invalidation from CLI
2 parents 182ad53 + 68394c8 commit 2b0dfc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/StaticCache.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private function addCacheHeadersToWebResponse(): void
249249
$this->tags->push(...$existingTagsFromHeader);
250250
$this->tags = $this->prepareTags(...$this->tags);
251251

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

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

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

0 commit comments

Comments
 (0)