Skip to the content
Documentation

exp:makestaticcache

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

Crawl the public siteaccesses and generate static pages (--site, --max-pages, --max-depth)

Usage

./console exp:makestaticcache [options]
php bin/php/makestaticcache.php [options]

Help

The output of ./console help exp:makestaticcache (the script run with --help), without the standard options:

Usage: bin/php/makestaticcache.php [OPTION]...
Exponential static cache generator

./bin/makestaticcache.php --siteaccess user


Options:
  -f
  --force            Accepted for compatibility; a run always replaces what it generates.
  --site=VALUE       Generate only this siteaccess. Repeat for several; omit for every public one.
  --max-pages=VALUE  Stop after this many pages per site. Default 2500.
  --max-depth=VALUE  Follow links this many steps from the site root. Default 12.
  --keep             Add to what is already stored instead of replacing it.

Options

Option Value Description
-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.

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/makestaticcache.php, kernel/private/classes/commands/makestaticcache.php

See also

Generated example: exp:makestaticcache

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.