-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Don't limit element cache by config cacheDuration #16796
base: 6.x
Are you sure you want to change the base?
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
stopCollectingCacheInfo
return anull
duration, and leave it to the caller to limit the value if desired.