The staticpublish.php cronjob
Static publishing: push again what could not be pushed, publish the pages changed by a content publish (debounced) and the targets whose schedule is due.
Entry point cronjobs/staticpublish.php, code in kernel/private/classes/cronjobs/staticpublish.php.
The cronjob part staticpublish (cronjobs/staticpublish.php; [CronjobPart-staticpublish] in cronjob.ini): pushes the
static publishing targets whose runs could not be pushed (exp_static_run.push_state pending) again
(expStaticPublisher::retry(): the branch with every commit and the target's tags, never forced); then, for the
targets with Triggers[]=publish, builds the pages a content publish marked stale (expStaticPublishQueue, once
[StaticPublishSettings] PublishDebounce seconds passed since the last change; a full build above 200 nodes) and
publishes them; then builds in full and publishes the targets with Triggers[]=schedule whose Schedule matched
since their last scheduled run (expStaticSchedule; remembered in <WorkDir>/.schedule.json). Does nothing while
static publishing is switched off or nothing waits.
When it runs
In the shipped settings/cronjob.ini it belongs to: the part staticpublish.
# run its part (as the user the web server runs as, from the installation root)
php runcronjobs.php staticpublish
./console exp:runcronjobs staticpublish
# run only this script
php runcronjobs.php staticpublishAdd it to a part in an override:
# settings/override/cronjob.ini.append.php
[CronjobPart-staticpublish]
Scripts[]=staticpublish.php
*/ ?>Related
Generated by ./console exp:help:examples from cronjobs/staticpublish.php, kernel/private/classes/cronjobs/staticpublish.php, settings/cronjob.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.