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

cronjob.ini [CronjobPart-cache_cleanup]

The settings of [CronjobPart-cache_cleanup] in cronjob.ini: Scripts

Download as PDF

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

On this page

cronjob.ini [CronjobPart-cache_cleanup]

The block [CronjobPart-cache_cleanup] of settings/cronjob.ini, with 1 setting(s).

Removes view cache and cache-block files that have expired or grown old;
without it they stay on disk until the same key is generated again. Runs for
the var directory of the given siteaccess, so once per VarDir:
php runcronjobs.php -s <siteaccess> cache_cleanup

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).

Scripts

The role-aware HTTP cache (settings/httpcache.ini); does nothing while it is off.
The result files of the SQL query cache (settings/querycache.ini Storage=file,
or auto without APCu); does nothing while there are none.

Default: a list of 3: cachecleanup.php, httpcache_cleanup.php, querycache_cleanup.php.

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

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