Skip to content

Commit e6bfbf2

Browse files
committed
Adjusted tags invalidation path configuration key
1 parent 897ca10 commit e6bfbf2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ProxyClient/Symfony.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ protected function configureOptions()
5858
'purge_method' => PurgeListener::DEFAULT_PURGE_METHOD,
5959
'tags_method' => PurgeTagsListener::DEFAULT_TAGS_METHOD,
6060
'tags_header' => PurgeTagsListener::DEFAULT_TAGS_HEADER,
61-
'tags_path' => '/',
61+
'tags_invalidate_path' => '/',
6262
'header_length' => 7500,
6363
]);
6464
$resolver->setAllowedTypes('purge_method', 'string');
6565
$resolver->setAllowedTypes('tags_method', 'string');
6666
$resolver->setAllowedTypes('tags_header', 'string');
67-
$resolver->setAllowedTypes('tags_path', 'string');
67+
$resolver->setAllowedTypes('tags_invalidate_path', 'string');
6868
$resolver->setAllowedTypes('header_length', 'int');
6969

7070
return $resolver;
@@ -86,7 +86,7 @@ public function invalidateTags(array $tags)
8686
foreach (array_chunk($escapedTags, $chunkSize) as $tagchunk) {
8787
$this->queueRequest(
8888
$this->options['tags_method'],
89-
$this->options['tags_path'],
89+
$this->options['tags_invalidate_path'],
9090
[$this->options['tags_header'] => implode(',', $tagchunk)],
9191
false
9292
);

src/Test/SymfonyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function getProxyClient()
124124
$this->proxyClient = new Symfony($httpDispatcher, [
125125
'purge_method' => 'NOTIFY',
126126
'tags_method' => 'UNSUBSCRIBE',
127-
'tags_path' => '/symfony.php/',
127+
'tags_invalidate_path' => '/symfony.php/',
128128
]
129129
);
130130
}

0 commit comments

Comments
 (0)