Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > #CACHE

#CACHE

#CACHE{duration} is used to define the duration that the cache will be valid for after calculation of a template, expressed as a number of seconds. When this duration is exceeded, the template will be freshly calculated the next time it is requested.

This tag is generally inserted at the top of template files. In its absence, by default, the validity duration of a page is for 24 hours (defined by the constant _DUREE_CACHE_DEFAUT).

Example

Define a cache validity of one week:

  1. #CACHE{3600*24*7}
  • Author :
  • Published :
  • Updated : 13/06/10
  • Translations : English, français