integer cast on cache_lifetime return 0 instead of null if not provided
lwillems opened this issue · 2 comments
lwillems commented
in BazingaGeocoderExtension
$container->register($providerServiceId.'.cache', CachePlugin::class) ->setPublic(false) ->setArguments([new Reference($cacheServiceId), (int) $config['cache_lifetime'], $config['cache_precision']]);
casting argument as (int) make it default to 0 in cachePlugin __construct instead of null if provided in yaml conf :
cache_lifetime: ~
Consequence : infinite caching is not possible
Regards