exp:makestaticcache
Crawl the public siteaccesses and generate static pages (--site, --max-pages, --max-depth).
Script bin/php/makestaticcache.php, code in kernel/private/classes/commands/makestaticcache.php. Run it from the installation root, as the user the web server runs as:
./console exp:makestaticcache --help
php bin/php/makestaticcache.php --helpOptions
| Option | Value | Help |
|---|---|---|
-f | ||
--force | Accepted for compatibility; a run always replaces what it generates. | |
--site | required | Generate only this siteaccess. Repeat for several; omit for every public one. |
--max-pages | required | Stop after this many pages per site. Default 2500. |
--max-depth | required | Follow links this many steps from the site root. Default 12. |
--keep | Add to what is already stored instead of replacing it. |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/makestaticcache.php, kernel/private/classes/commands/makestaticcache.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.