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

Caches after a change

Which cache to clear after which kind of change - menu settings, templates, layouts, content - in the administration's Clear cache box and with exp:cache, and what each choice covers.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/caches-after-a-change.md

On this page

Caches after a change

Exponential keeps several caches so pages are fast. After a change, the right one has to go. This table is what was needed on the Fit & Healthy site while writing these pages.

Contents

  1. The table
  2. The Clear cache box
  3. The console
  4. Velocity

The table

You changedClearWhy
A content page (publish)nothing, usuallyPublishing clears the caches of the page; on the test copy, other pages were also rendered fresh (page cache miss) right after a publish
menu.ini (header or footer menu IDs)Template & contentThe menu templates are compiled with the setting's values in them
Another INI setting read in a template with ezini()Template & contentSame reason
An INI setting read only in PHPIni settings (saving in the administration or exp:ini does it)The INI cache
An existing .tpl fileTemplate & contentCompiled template, template blocks, view cache, page cache
A new .tpl file (a new override)Template & contentThe override list (template-override) is part of the template tag
A layout, published in the Layouts editorTemplate & content if a page still shows the old blocksSee Why doesn't my change appear?
A stylesheet or script of the designTemplate & contentThe packed files (ezjscore-packer) and the pages that link them

The clear cache box

The Clear cache box on the right of the administration offers:

ChoiceClears
All cachesevery cache
Contentthe caches with the tag content
Content - node, Content - subtreethe view cache of one page or a branch (from a page's view)
Templatethe caches with the tag template
Template & contentthe tags template and content
Ini settingsthe tag ini
Staticthe static page cache, regenerated
The Clear cache box with the choice list and the Clear button
The Clear cache box with the choice list and the Clear button

With the tags template and content together, these are cleared (from a real run): exphttpcache (page cache), template (compiled templates), template-block, template-override, texttoimage, design_base, ezjscore-packer, content (view cache), querycache, classid, sortkey, urlalias, rss_cache, content_tree_menu, state_limitations, content_language and rest: 17 caches.

The console

./console exp:cache clear --tag=template,content     # = Template & content
./console exp:cache clear --id=exphttpcache          # one cache by id
./console exp:cache list                             # every cache, id, tags
./console exp:cache clear --tag=template --dry-run   # what would be cleared

exp:cache ends with PASS or FAIL. On the test copy, clearing template,content took 2.0 to 2.5 seconds and the first page after it 2.9 to 3.4 seconds to render, the next one 22 to 102 milliseconds (Measured steps and times).

Velocity

A site served by Exponential Velocity has its own response cache and workers that keep the settings of their warm-up. After a settings change there, exp:ini itself advises ./console exp:velocity restart.

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