Name
jchoptimize:recache — Fill the page cache by crawling your site Joomla Pro
Synopsis
php cli/joomla.php jchoptimize:recache
[
--delete-cache
| --no-delete-cache
]
[--crawl-limit=number]
[--concurrency=number]
[--max-depth=number]
[--live-site=URL]
Description
Visits your site's pages, starting from the Base URL in the Recache settings and following links, so each page is optimized and cached before a real visitor asks for it. Options you give override the Recache settings for this run only. To schedule it from the administrator area instead, see the section called “Keep the Page Cache Warm with Recache”.
Options
--delete-cache,--no-delete-cacheDelete, or keep, the existing cache before crawling. The default is to delete it.
--crawl-limit,-lThe maximum number of pages visited.
--concurrency,-cThe number of pages visited at the same time.
--max-depth,-mHow many links deep the crawl follows from the starting page.
Example
Recache the site every night at 3:00, keeping the existing cache:
0 3 * * * /usr/bin/php /path/to/site/cli/joomla.php jchoptimize:recache --no-delete-cache --live-site=https://www.example.com/ --quiet