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

cronjob.ini [CronjobSettings]

The settings of [CronjobSettings] in cronjob.ini: ScriptDirectories, Scripts, ExtensionDirectories, MaxScriptExecutionTime

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/ini-settings/cronjob/CronjobSettings.md

On this page

cronjob.ini [CronjobSettings]

The block [CronjobSettings] of settings/cronjob.ini, with 4 setting(s).

Never edit settings/cronjob.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/cronjob.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/cronjob.ini.append.php for one siteaccess,
  • extension/<extension>/settings/cronjob.ini.append.php in an extension (read when the extension is active).

ScriptDirectories

Default: a list of 1: cronjobs.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobSettings]
# an empty "ScriptDirectories[]" first replaces the shipped list; without it the items are added
ScriptDirectories[]
ScriptDirectories[]=cronjobs
*/ ?>

Scripts

Since 4.6 the following script is not activated by default
Scripts[]=subtreeexpirycleanup.php

Default: a list of 5: unpublish.php, rssimport.php, indexcontent.php, hide.php, internal_drafts_cleanup.php.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobSettings]
# an empty "Scripts[]" first replaces the shipped list; without it the items are added
Scripts[]
Scripts[]=unpublish.php
Scripts[]=rssimport.php
Scripts[]=indexcontent.php
Scripts[]=hide.php
Scripts[]=internal_drafts_cleanup.php
*/ ?>

ExtensionDirectories

Scripts[]=unlock.php
Scripts[]=staticcache_cleanup.php
Scripts[]=updateviewcount.php
Extension directory for cronjobs.

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobSettings]
# an empty "ExtensionDirectories[]" first replaces the shipped list; without it the items are added
ExtensionDirectories[]
*/ ?>

MaxScriptExecutionTime

No more than one instance of a cronjob script can be run at any given time.
If a script uses more time than MaxScriptExecutionTime, the next instance of
it will try to gracefully steal the cronjob script mutex. If the process has
been running for more than two times MaxScriptExecutionTime, the original
process will be killed. The default is 12 hours. MaxScriptExecutionTime can
also be set per cronjob part, that will override this global setting.

Default: 43200.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CronjobSettings]
MaxScriptExecutionTime=43200
*/ ?>

Generated by ./console exp:help:examples from 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