The querycache_cleanup.php cronjob
Remove the result files of the SQL query cache that are older than MaxAge or from before the last clear.
Entry point cronjobs/querycache_cleanup.php, code in kernel/private/classes/cronjobs/querycache_cleanup.php.
The code of cronjobs/querycache_cleanup.php. The file cronjobs/querycache_cleanup.php is one call to it.
Guide: doc/eng-us/bc/6.0/cli_cronjob_view_abstractions.mdRemoves the result files of the SQL query cache (querycache.ini Storage=file, or auto without APCu) that can no
longer be answered: older than MaxAge or from before the last clear. A lookup never answers them anyway; without
this run they stay on disk until the same statement is stored again.
When it runs
In the shipped settings/cronjob.ini it belongs to: the part cache_cleanup.
# run its part (as the user the web server runs as, from the installation root)
php runcronjobs.php cache_cleanup
./console exp:runcronjobs cache_cleanup
# run only this script
php runcronjobs.php querycache_cleanupAdd it to a part in an override:
# settings/override/cronjob.ini.append.php
[CronjobPart-cache_cleanup]
Scripts[]=querycache_cleanup.php
*/ ?>Related
Generated by ./console exp:help:examples from cronjobs/querycache_cleanup.php, kernel/private/classes/cronjobs/querycache_cleanup.php, settings/cronjob.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.