You are here:
Foswiki
>
System Web
>
Macros
>
VarVARCACHE
(31 Mar 2010, FoswikiContributor)
(raw view)
E
dit
A
ttach
#VarVARCACHE ---+++ VARCACHE{ _attributes_ } -- cache the results of Foswiki macros in selected topics for faster page rendering %STARTSECTION{name="detail"}% * Syntax: =%<nop>VARCACHE{ "24" }%= * Supported attributes: | *Attribute* | *Comment* | *Default* | | ="..."= or%BR% =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 ([<nop>[$link][refresh]])= | | =updatemsg="..."= | Message shown after a cache refresh. Use =$link= to indicate the refresh URL | =This topic is now cached ([<nop>[$link][refresh]])= | * Example: =%<nop>VARCACHE{"168"}%= caches the current page for 7 days * The standard Foswiki [[FormatTokens][format tokens]] are supported in =cachmsg= and =updatemsg=. %ENDSECTION{name="detail"}% * Related: VarCachePlugin, VarCachePluginTest * The =%<nop>VARCACHE{}%= variable is handled by the VarCachePlugin.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 31 Mar 2010, FoswikiContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Cosmo
Main
Sandbox
System
English
Français
Polski
Copyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki?
Send feedback