• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7396: VARCACHE_EXCLUDE_ variable prefix to disable caching of selected variables

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension VarCachePlugin Enhancement Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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

ItemTemplate
Summary VARCACHE_EXCLUDE_ variable prefix to disable caching of selected variables
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 6.0.0
SVN Range TWiki-6.0.1-trunk, Wed, 04 Dec 2013, build 26649
AppliesTo Extension
Component VarCachePlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:26651 TWikirev:26652 TWikirev:26653 TWikirev:26654 TWikirev:26655 TWikirev:26656 TWikirev:26659 TWikirev:26660 TWikirev:26661 TWikirev:26662 TWikirev:26663 TWikirev:26664 TWikirev:26683 TWikirev:26684 TWikirev:26685 TWikirev:26686
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r17 < r16 < r15 < r14 < r13 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r17 - 2013-12-29 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback