I some cases it is desirable to exclude certain variables from getting cached. The plugin already supports
<varcache_exclude>
tags to exclude a region, but with this it is not possible to exclude certain variables in an INCLUDE.
This enhancement allows one to prefix any variable with
VARCACHE_EXCLUDE_
and it will be excluded from getting cached. For example, to exclude
%WIKIUSERNAME%
write
%VARCACHE_EXCLUDE_WIKIUSERNAME%
.
Watch out that you do escape all variables that depend on an escaped variable. For example, escape FORMFIELD if it encloses WIKIUSERNAME, like this:
%VARCACHE_EXCLUDE_FORMFIELD{ "FirstName" topic="%VARCACHE_EXCLUDE_WIKIUSERNAME%" }%
--
TWiki:Main/PeterThoeny
- 2013-12-05
This is now in SVN trunk and 6.0 release. The plugin package is updated as well.
--
TWiki:Main.PeterThoeny
- 2013-12-05