So I noticed that by setting the 'cacheDuration' => false
it seems to set, by default, the expiration date to 1 year from when the cache is saved.
I found this in /app/services/TemplateCacheService.php
starting from line 263:
if($duration <= 0)
{
$duration = 31536000; // 1 year
}
I know a longer duration could be achieved by setting the expiration to something like 4Y
. But I wanted to raise this and ask if it was an oversight or what the reason was for setting it to a year and overriding the specific value of not setting an expiration at all...?
Thanks.