Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

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.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/cronjobs/staticpublish.md

On this page

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 staticpublish

Add it to a part in an override:

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobPart-staticpublish]
Scripts[]=staticpublish.php
*/ ?>

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x