Ticket #380 (closed defect: duplicate)
Caching on views and nested event-handlers.
| Reported by: | andrea@… | Owned by: | boomfish |
|---|---|---|---|
| Priority: | high | Milestone: | 3.2 |
| Version: | 3.1.185 | Severity: | normal |
| Keywords: | Cc: |
Description
I have created a patch that enable MG to cache single view based on include tag and also events differents from the main one. Actually these 2 caching scenario are not working at all.
<event-handler name="page.index" >
<broadcasts /> <results> <result do="views.one"/> <result do="views.two"/> <result do="template.main" /> </results> <views> <include name="three" template="pages/three.cfm" cache="true" /> <include name="four" template="pages/four.cfm"/> </views> </event-handler>
<event-handler name="views.one" cache="true"> <views> <include name="one" template="pages/one.cfm" /> </views> </event-handler>
<event-handler name="views.two"> <views> <include name="two" template="pages/two.cfm" /> </views> </event-handler>
Code like this will work efficiently.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)