Cron Jobs

Automated processes

The backend takes over a number of processes based on cron jobs, which are carried out automatically on the backend server.

The following processes are currently being carried out:

Job

Description

0  0 *  *  * rm -rf {path to your project director}/silverstripe-cache/*

Clears silverstripe-cache


0 0 * * * php {project-path}/vendor/silverstripe/framework/cli-script.php dev/tasks/EveryDataStoreTask action=updateStorageCurrentSize

Updates asset storage size of a datastore
0 0 *  *  * php {project-path}/vendor/silverstripe/framework/cli-script.php dev/tasks/EveryDataStoreTask action=deleteDraftRecordSetItems

Deletes draft RecordSetItems

0 0 * * * php {project-path}/vendor/silverstripe/framework/cli-script.php dev/tasks/EveryDataStoreTask action=emptyTmpDir

Cleans tmp directory

0 0 * * * php {project-path}/vendor/silverstripe/framework/cli-script.php dev/tasks/EveryDataStoreTask action=deleteUnusedTranslations

Recreates JSON-File for widgets

0 0 * * * php {project-path}/vendor/silverstripe/framework/cli-script.php dev/tasks/TruncateVersionsTaskExtension reset=1

This prunes all previous versions for published DataObjects, keeping only the latest single published version.

0 0 * * * cp {project-path}/silverstripe.log  {project-path}/log/silverstripe_$(date +\%Y\%m\%d).log; > {project-path}/log/silverstripe.log

Backup job for backend log-file