Closed qzminski closed 2 years ago
Thanks for your contribution! Yes, a change like you suggested would be good, but to be honest, I don't know it this utils is need anymore so maybe we can remove it in version 3. But I will put your idea in an issue, maybe my future me or someone find time to implement your idea :)
If there is no
system/tmp
folder available and you try to warmup the cache, it will result in an error. This PR should fix that.Ideally, this logic should be changed to not use Contao local config, but rather some service like
DatabaseCacheUtil::getDbCacheMaxTime()
which checks if local config value exists, otherwise returns a default value.