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

old_drafts_cleanup.php cronjob

Remove user drafts that exceed the configured age limit.

Download as PDF

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

On this page

The old_drafts_cleanup.php cronjob

Remove user drafts that exceed the configured age limit.

Entry point cronjobs/old_drafts_cleanup.php, code in kernel/private/classes/cronjobs/old_drafts_cleanup.php.

The code of cronjobs/old_drafts_cleanup.php, moved into a class (#207 stage 1). The file cronjobs/old_drafts_cleanup.php is one call to it.
Guide: doc/eng-us/bc/6.0/cli_cronjob_view_abstractions.md

When it runs

It is in no shipped part: add it to one in an override (below) or run it on its own.

# run only this script
php runcronjobs.php old_drafts_cleanup

Add it to a part in an override:

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

Generated by ./console exp:help:examples from cronjobs/old_drafts_cleanup.php, kernel/private/classes/cronjobs/old_drafts_cleanup.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