• 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.

Item6871: Exclude parts of page from getting cached

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 have the need to cache some variables on a page but not others. For example, variables that depend on the logged in user (such as a SEARCH that shows open tasks of the currently logged in user) should not be cached, but other queries should be cached.

This enhancement adds a new varcache_exclude tag. Example:

   * %SEARCH: %{ "." nonoise="on" format="$topic" separator=", " limit="10" }%
<varcache_exclude>
   * %SEARCH: %{ "%WIKINAME%" nonoise="on" format="$topic" separator=", " limit="10" }%
</varcache_exclude>
   * %SEARCH: %{ "." nonoise="on" format="$topic" separator=", " limit="10" }%

-- TWiki:Main/PeterThoeny - 2012-04-27

This is now in SVN trunk and TWiki-5.1 branch, and published to TWiki.org.

-- TWiki:Main/PeterThoeny - 2012-04-27

I introduced a bug in the last checkin when varcache_exclude tag as used. Now fixed, updated in SVN trunk and 5.1 branch, and uploaded to twiki.org.

-- TWiki:Main/PeterThoeny - 2012-04-27

ItemTemplate
Summary Exclude parts of page from getting cached
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 5.1.1
SVN Range TWiki-5.1.1-trunk, Tue, 03 Apr 2012, build 22774
AppliesTo Extension
Component VarCachePlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:22836 TWikirev:22837 TWikirev:22838 TWikirev:22839 TWikirev:22840 TWikirev:22841 TWikirev:22842 TWikirev:22843
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2012-09-07 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback