Expand description
Background driver for scheduled publishing and expiry.
crate::page::run_schedule_sweep flips scheduled pages live and
takes expired ones down, but nothing ran it except an editor opening
the admin page list — on a quiet site a page could sit past its go-live
time indefinitely. spawn_schedule_sweeper runs it on a timer for
every active tenant.
The public resolver no longer depends on this to decide visibility —
it checks the dates itself (crate::resolver::visible_now). The
sweeper persists the status change and purges the page cache, so
listings, feeds and cached pages catch up too.
Functions§
- spawn_
schedule_ sweeper - Run the schedule sweep for every active tenant every
interval.