Don't limit element cache by config cacheDuration#16796
Conversation
|
The way I'm reading this change, template caches created with If that's the case, this feels like a pretty major behavioural change IMO. |
5a84ee2 to
20f8452
Compare
@mmikkel In that case, the template cache would be set with a |
|
Aha! Good to know, thanks @timkelty – and pardon the noise 🙂 |
|
Decided to target this to An element has an expiry longer the configured
|
20f8452 to
84805c8
Compare
No sweat – it made us dig deeper and realize it technically is a behavior change still, so will wait for 6. |
Description
Limiting the element cache duration by
\craft\config\GeneralConfig::$cacheDuration(defaults to a 1 day) can result in element caches being set with unexpectedly short expiry.It seems better and more flexible to just let it
stopCollectingCacheInforeturn anullduration, and leave it to the caller to limit the value if desired.