The contentcheck.php cronjob
Build the reference index of the content checks (unused assets), for installations where a page may not build it (contentcheck.ini BuildOnRequest=false).
Entry point cronjobs/contentcheck.php, code in kernel/private/classes/cronjobs/contentcheck.php.
The code of cronjobs/contentcheck.php: builds the reference index of the content checks and keeps it in the cache
(expContentCheckReferences). Run it as the cronjob part contentcheck (php runcronjobs.php contentcheck) more often
than contentcheck.ini [UnreferencedSettings] IndexTTL when BuildOnRequest is false. With [MissingFileSettings]
CronjobReport=enabled it also counts the missing files and alias problems of the whole tree and writes the count
to the cronjob output (a warning when there are any); it never resolves anything.
Guide: doc/eng-us/features/6.0/content-checks.md
When it runs
In the shipped settings/cronjob.ini it belongs to: the part contentcheck.
# run its part (as the user the web server runs as, from the installation root)
php runcronjobs.php contentcheck
./console exp:runcronjobs contentcheck
# run only this script
php runcronjobs.php contentcheckAdd it to a part in an override:
# settings/override/cronjob.ini.append.php
[CronjobPart-contentcheck]
Scripts[]=contentcheck.php
*/ ?>Related
Generated by ./console exp:help:examples from cronjobs/contentcheck.php, kernel/private/classes/cronjobs/contentcheck.php, settings/cronjob.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.