Skip to content
Discussion options

You must be logged in to vote

Just PR’d a native solution for this for Craft 5.7: there’s a new staticStatuses config setting, which can be used to opt into having entry statuses stored statically and only updated on entry save; plus an update-statuses CLI command that can be hit with a Cron job, which updates any entries with out-of-date statuses, triggering save events and clearing caches in the process. (Plus a new Entry::$oldStatus property that can be checked from save event handlers to see if the status just changed.)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@goraxan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants