• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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.

Item6791: Item 6699 enhancement has side effects, breaks INCLUDE semantics, with table name lookup

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ChartPlugin Urgent Closed   n/a  

Edit Form Data

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

Detail

A side effect of Item6699: Added caching of table processing in a topic so multiple charts on the same topic page will only parse the topic page once instead of each time a chart was created. is that the following TML no longer works...

%INCLUDE{TABLE_A_render_CHART_A}%

%INCLUDE{TABLE_B_render_CHART_B}%

%INCLUDE{TABLE_C_render_CHART_C}%

Since TABLE_B & TABLE_C are invisible, while processing CHART_A, the cache does not contain any reference to these tables, when rendering CHART_B or CHART_C, and therefore the second and third charts complain about not finding the table.

Tables A, B, C are generated dynamically, depending on various URL parameters, and hence the necessity to modularize the code, and reuse the table generation and chart preparation.

It would be great if the optimization could somehow be conditionally applied.

-- TWiki:Main.DipuDeshmukh - 2011-08-11

I pinged the primary maintainer of this plugin.

-- TWiki:Main.PeterThoeny - 2011-08-19

Fixed. I added a new plugin configuration variable CACHE to ChartPlugin that defaults = 0. Only if CACHE=1 will caching of a topic page be performed.

-- TaitCyrus - 2011-08-23

Wonderful! Much appreciated!

-- TWiki:Main.DipuDeshmukh - 2011-08-24

ItemTemplate
Summary Item 6699 enhancement has side effects, breaks INCLUDE semantics, with table name lookup
ReportedBy TWiki:Main.DipuDeshmukh
Codebase 5.0.1
SVN Range TWiki-5.1.0-rc1, Thu, 04 Aug 2011, build 21895
AppliesTo Extension
Component ChartPlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:22134
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2011-08-24 - DipuDeshmukh
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback