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

cronjob.ini [CacheCleanupSettings]

The settings of [CacheCleanupSettings] in cronjob.ini: MaxAge, IterationSleep, RenameAfterClear

Download as PDF

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

On this page

cronjob.ini [CacheCleanupSettings]

The block [CacheCleanupSettings] of settings/cronjob.ini, with 3 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).

MaxAge

Seconds after which a file is removed whatever its expiry. A cold entry that
was still valid costs one regeneration. 0 removes only expired files.

Default: 172800.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CacheCleanupSettings]
MaxAge=172800
*/ ?>

IterationSleep

Microseconds to sleep after every 1000 files, to go easy on the disk. 0 = none.

Default: 0.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CacheCleanupSettings]
IterationSleep=0
*/ ?>

RenameAfterClear

After a global clear of a cache, move its whole directory aside in one rename
and delete it from there, instead of looking at every file. Entries stored
between the clear and the run are lost and generated again. disabled removes
file by file. A clear in the administration interface or with
bin/php/ezcache.php already moves the directory aside itself (site.ini
[FileSettings] RenameExpiredCaches) and records that here, so this run does
not move it a second time.

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/cronjob.ini.append.php
[CacheCleanupSettings]
RenameAfterClear=enabled
*/ ?>

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