The template cache

There are various different caches used within SPIP, and others are also provided with various plugins, such as "Mémoisation", "Fastcache", "Expresso" or "Cache Cool".

One of the most important caches is the one maintained for the templates: whenever a template file is compiled, and the resultant PHP code generated, then these results are stored in cache in the temp/cache/skel directory. This cache is configured to have a validity period that is unlimited. Files in this cache are only regenerated for each template file when:

  • the original template file has been modified (which is based on the file’s storage date on disk),
  • either of the files mes_options.php or mes_fonctions.php have been modified,
  • the cache is emptied manually by an administrator.

Author Mark Baber Published :

Translations : English, français