Документ взят из кэша поисковой машины. Адрес оригинального документа : http://wiki.cmc.msu.ru/System/VarVARCACHE?rev=1
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 05:19:25 2016
Кодировка: koi8-r
VarVARCACHE < System < Foswiki
You are here: Foswiki>System Web>Macros>VarVARCACHE (revision 1)EditAttach

VARCACHE{ attributes } -- cache the results of Foswiki macros in selected topics for faster page rendering

  • Syntax: %VARCACHE{ "24" }%
  • Supported attributes:
    Attribute Comment Default
    "..." or
    refresh="..."
    Cache refresh period in hours (maximum age of cache). Accepts decimals, such as 0.25 24
    cachemsg="..." Message shown when looking at a cached topic. Use $age to indicate the age of cache, $link to indicate the refresh URL This topic was cached $age ago ([[$link][refresh]])
    updatemsg="..." Message shown after a cache refresh. Use $link to indicate the refresh URL This topic is now cached ([[$link][refresh]])
  • Example: %VARCACHE{"168"}% caches the current page for 7 days
  • The standard Foswiki format tokens are supported in cachmsg and updatemsg.

Topic revision: r1 - 31 Mar 2010, FoswikiContributor
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback