For JotCache ver.4.x are available two basic scripts (located in directory /administrator/components/com_jotcache/cron) :
Cache cleaning is necessary activity which have to be performed on the site because during longer time of cache operation steady increases number of expired cached pages files. In spite of rewriting/update some cached files in file system still remains orphaned files.
Function of this script is similar to JotCache plugin Autoclean feature but cache cleaning is not performed based on site visitor request and selected time period. With the script is done cache cleaning in separate server thread based on initiation of OS cron event.
Pages which content on the site was changed during active cache time (before expiration) can be written into cache with new updated content either with deleting of related cached content and consequent page request on frontend or using separate frontend request causing page recache (cached page file update).
Function of recache script is same as Recache features on Administrator JotCache Management View. Inside the script execution are used the same Jotcache plugins (recache, crawler) as in the backend but without (time & process) limitations of browser controlled operation.
The recache script can be adjusted for different functions - recache of existing cached pages or crawling the site starting from homepage to pages linked in given crawl depth. It is also possible to derive from cron_recache.php script template multiple dedicated execution scripts which can run under different cron job settings.
Both scripts cron.php as well as cron_recache.php are code templates which have to be customized for each web site.
Follow the introductory steps :