You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -722,6 +736,25 @@ private function createCachePluginNode()
722
736
->integerNode('default_ttl')
723
737
->info('The default max age of a Response')
724
738
->end()
739
+
->arrayNode('blacklisted_paths')
740
+
->info('An array of regular expression patterns for paths not to be cached. Defaults to an empty array.')
741
+
->defaultValue([])
742
+
->beforeNormalization()
743
+
->castToArray()
744
+
->end()
745
+
->prototype('scalar')
746
+
->validate()
747
+
->ifTrue(function ($v) {
748
+
returnfalse === @preg_match($v, '');
749
+
})
750
+
->thenInvalid('Invalid regular expression for a blacklisted path: %s')
751
+
->end()
752
+
->end()
753
+
->end()
754
+
->arrayNode('cache_listeners')
755
+
->info('A list of service ids to act on the response based on the results of the cache check. Must implement '.CacheListener::class.'. Defaults to an empty array.')
<deprecated>The %service_id% service is deprecated since version 1.17 and will be removed in 2.0. Use "@Httplug/http_message.html.twig" template instead.</deprecated>
0 commit comments