Skip to content
Discussion options

You must be logged in to vote

Unlike entry Post/Expiry Dates, which can be referenced in entry queries to ensure only live entries are returned, there are several actual database changes that need to happen when a draft is published.

So to solve this we first need to implement a scheduling library such as https://github.com/omnilight/yii2-scheduling (#8847), and require that all Craft sites (or those that want this feature) set a cron job that runs the schedule every minute. Then we can create a scheduled job that checks for any drafts that are due to be published, and handles that.

We’ll probably add support for entry publish events (#10858, #9170, #9394) and batched content releases (#8941) alongside it.

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
@LucasPoignonnec
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
None yet
3 participants