Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

The packer cache and deploys

Which caches to clear after a stylesheet, script, template or settings change of a design, why packed files and template-blocks go together, and the one deploy command that does it on installations with Velocity.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/theme-design/packer-cache-and-deploy.md

On this page

The packer cache and deploys

This page is for designers who changed a design and want the change on the site. It answers: what to clear for each kind of change, and why.

Contents

  1. What to clear, by change
  2. Why packed files and template-blocks go together
  3. The deploy command
  4. After the deploy

What to clear, by change

You changedClearCommand
a .css or .js filenothing: the packed file's name carries the source time, a new one is madehard-reload the browser
a stylesheet list (ezcss_load call, design.ini list)the template caches that hold the link--clear-id=template-block, and --clear-id=content for cached full views
an existing .tplcompiled templates, views, blocks--clear-id=template,content,template-block
a new .tpl or override rulethe override cache too--clear-id=template-override (plus the above)
an INI filethe INI caches--clear-tag=ini
an ezjscServer_* function or its settingspacked files and template-blocks together--clear-id=ezjscore-packer,template-block
activated a design extensiondesign bases and autoloads--clear-id=design_base, php bin/php/ezpgenerateautoloads.php -e

All commands are php bin/php/ezcache.php <option>; --list-ids lists every id.

Why packed files and template-blocks go together

The administration's page head is kept in a {cache-block}, and the cached head names the packed files. If only ezjscore-packer is cleared, the cached head points to files that no longer exist, and the admin loses its styles and scripts until template-block is cleared too. Clear them together, and in that order (doc/eng-us/bc/6.0/velocity-engines.md, "Deploying a PHP change").

An edited .css file does not need this: its packed file gets a new name by itself.

The deploy command

Installations that run the Velocity application server have one command that runs every step in the right order (autoloads, INI caches, template caches, PHP reload, Velocity restart, content and template-block caches):

./console exp:velocity deploy --allow-root-user            # templates, settings, PHP
./console exp:velocity deploy --packer --allow-root-user   # also packed scripts and styles
./console exp:velocity deploy --dry-run --allow-root-user  # show the steps only

--packer clears ezjscore-packer right before template-block and never elsewhere. Details: Velocity engines.

After the deploy

  • Hard-reload (Shift with the reload button, or the developer tools' "Empty cache and hard reload") if a browser still shows the old file.
  • On sites that run Velocity, its response cache is separate: ./console exp:velocity cache clear --apply.
  • Open the pages in a private window, signed out, to see what visitors see.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x