access-path
allow-root-user
colors
compile-directory
debug
force
full-url
help
index-file
logfiles
no-colors
no-full-url
no-logfiles
quiet
siteaccess
verbose
www-dir
Extra access path.
Allows your root user to run the ezcache.php script. The usage of this parameter is only recommended for advanced users. With great power comes great responsibility.
Use ANSI colors when generating debug output (default).
Path where to place compiled files, default is template/compiled in current cache directory.
Output debug information. The following options can be used to control what the debug output should include: "all" (everything), "accumulator" (accumulators), "include" (included files), "timing" (timing points), "error" (errors), "warning" (warnings), "notice" (notices).
Force compilation of template whether it has changed or not.
Makes sure generated urls have http:// in them (i.e. global), used mainly by sites that include the eZ Publish HTML (e.g payment gateways).
Output information about the script and supported parameters.
The name of your index.php if you are running in non-virtualhost mode.
Generate log files. This parameter must be used together with the debug parameter ("-d" or "--debug"). The log files (for example "warning.log") will be stored in the "var/log" directory of the eZ Publish installation.
Do not use ANSI colors when generating debug output.
Makes sure generated urls are relative to the site. (default)
Do not generate log files (default).
Run the script in "quiet" mode. No output will be generated.
The siteaccess to run the script for. If omitted, the default siteaccess will be used.
Output verbose / additional information.
The part before the index.php in your URL, you should supply this if you are running in non-virtualhost mode.
This script compiles the eZ Publish templates, generating template caches for all views of a given siteaccess.
If no siteaccess is specified (using the -s, --siteaccess parameter) the default one will be used.
To run the script, navigate into the root directory of your eZ Publish installation and use the following shell command:
php bin/php/eztc.php [<parameters>]
Replace "[<parameters>]" with one or more of the script parameters described above. Note that you need to have PHP CLI installed in order to run the script from within a system shell.
Sometimes the script is unable to compile the templates (generate template cache) because of restrictive file/directory permission settings. You can check whether the templates have been compiled by inspecting the contents of the various cache sub-directories within the "var" directory (typically "var/cache/" and "var/<name_of_siteaccess>/cache/template/compiled" directories).
The script also works for compiling templates on multiple node installations, and for that the script must be executed on each server node, which will generate local template cache for each one.
The both usage applies both for clustered and non-clustered environments.
php bin/php/eztc.php -s ezflow_site
Compile templates for the "ezflow_site" siteaccess.
php bin/php/eztc.php -s ezflow_site --force
Force the template compile for the "ezflow_site" siteaccess.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.