File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## UNRELEASED
4
4
5
+ ### Changed
6
+
7
+ - The default value for `` default_ttl `` is changed from `` null `` to `` 0 `` .
8
+
5
9
### Fixed
6
10
7
11
- Issue when you use ` respect_cache_headers=>false ` in combination with ` default_ttl=>null ` .
12
+ - We allow `` cache_lifetime `` to be set to `` null `` .
8
13
9
14
## 1.1.0 - 2016-08-04
10
15
Original file line number Diff line number Diff line change @@ -264,12 +264,12 @@ private function configureOptions(OptionsResolver $resolver)
264
264
{
265
265
$ resolver ->setDefaults ([
266
266
'cache_lifetime ' => 86400 * 30 , // 30 days
267
- 'default_ttl ' => null ,
267
+ 'default_ttl ' => 0 ,
268
268
'respect_cache_headers ' => true ,
269
269
'hash_algo ' => 'sha1 ' ,
270
270
]);
271
271
272
- $ resolver ->setAllowedTypes ('cache_lifetime ' , 'int ' );
272
+ $ resolver ->setAllowedTypes ('cache_lifetime ' , [ 'int ' , ' null ' ] );
273
273
$ resolver ->setAllowedTypes ('default_ttl ' , ['int ' , 'null ' ]);
274
274
$ resolver ->setAllowedTypes ('respect_cache_headers ' , 'bool ' );
275
275
$ resolver ->setAllowedValues ('hash_algo ' , hash_algos ());
You can’t perform that action at this time.
0 commit comments