Scheduled Publishing
Scheduled publishing allows pages to be automatically activated or deactivated at a specific date and time. Requires enableScheduledPublishing to be enabled and the publish-scheduler cron job to be running. Setting scheduled dates requires the Contributor role or higher.
Setting a publish date
Open a page in edit mode. In the scheduling section below the editor, set a Publish at date and time. Save the page. At the specified time the scheduler will automatically set the page to Active and the workflow status to Published. The publish date is cleared after the page is activated.
Setting an expiry date
Set an Expire at date and time to automatically deactivate a page at a specific time. When the expiry time is reached, the scheduler sets the page to Inactive. The expiry date is cleared after the page is deactivated.
Both dates together
You can set both a publish date and an expiry date on the same page — for example to publish a time-limited announcement and have it disappear automatically.
How the scheduler runs
The publish-scheduler command must be scheduled to run every 5 minutes via cron. Pages are activated or deactivated within 5 minutes of their scheduled time. See Setting Up Cron Jobs.
Enabling scheduled publishing
Scheduled publishing is controlled by enableScheduledPublishing in config/app.php. See Application Settings.