Automatically support scheduled invalidation + staticStatuses/update-statuses #82
timkelty
started this conversation in
Feature Requests & Enhancements
Replies: 1 comment 1 reply
-
Just to add some context to why this would be a game changer. Some of our publishing sites use scheduled posts a lot, but using the standard Craft behaviour means that if the home or a category page is cached, the scheduled post simply wont show on the page which is a big 👎 but waiting an hour for it to go live is also not acceptable to them. So we have very short (imo) cache times to try to get some caching even if it's only for a few minutes but if we could use static statuses, and have Craft Cloud do this each minute or so we could have longer lasting caches and really help the performance and availability of the sites. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As of 5.7.0, the
staticStatuses
config setting allows the use of theupdate-statuses
CLI command to update element statuses as their publish or expiration date passes, which will trigger static caches to be invalidated.Cloud users can create a scheduled command (currently 1hr is the minimum interval) that runs
update-statuses
, and static caches will be invalidated within the cron window (1hr).Ideally, Cloud would support this natively without the need for a cron, by having Craft trigger a one-time scheduled command in the future.
staticStatuses
/update-statuses
: craftcms/cms#17024Beta Was this translation helpful? Give feedback.
All reactions