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: 2 comments 1 reply

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
Ideas
Labels
enhancement improvements to existing features
2 participants
Converted from issue

This discussion was converted from issue #1068 on July 13, 2021 04:01.