File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
4
4
5
+ # 1.xx.yy- YYYY-MM-JJ
6
+
7
+ - Fixed: You can now configure the cache plugin option ` cache_lifetime ` to ` null ` (which makes the plugin not add to the maxAge).
8
+
5
9
# 1.26.1 - 2022-04-29
6
10
7
11
- Fixed: Setting the cache plugin option ` respect_response_cache_directives ` to ` null ` makes the
Original file line number Diff line number Diff line change @@ -710,8 +710,14 @@ private function createCachePluginNode()
710
710
->scalarNode ('cache_key_generator ' )
711
711
->info ('This must be a service id to a service implementing ' .CacheKeyGenerator::class)
712
712
->end ()
713
- ->integerNode ('cache_lifetime ' )
713
+ ->scalarNode ('cache_lifetime ' )
714
714
->info ('The minimum time we should store a cache item ' )
715
+ ->validate ()
716
+ ->ifTrue (function ($ v ) {
717
+ return null !== $ v && !is_int ($ v );
718
+ })
719
+ ->thenInvalid ('cache_lifetime must be an integer or null, got %s ' )
720
+ ->end ()
715
721
->end ()
716
722
->scalarNode ('default_ttl ' )
717
723
->info ('The default max age of a Response ' )
You can’t perform that action at this time.
0 commit comments