#588: [PATCH] Allow extra check for output types that are declared before the
Action
--------------------+-------------------------------------------------------
Reporter: ross | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: filter | Version: 0.11.0RC5
Severity: normal | Keywords:
--------------------+-------------------------------------------------------
I have an rss output type that is declared in routing.xml:
{{{
<route name="rss" pattern=".rss$" cut="true" stop="false"
output_type="rss" />
}}}
I have an caching configuration to cache the output for the "html" output
type:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<configurations>
<configuration>
<cachings>
<caching method="read" lifetime="15 minutes" >
<groups>
<group>questions</group>
<group>index</group>
<group source="request_parameter">display</group>
<group source="request_parameter">page</group>
<group source="request_parameter">count</group>
</groups>
<views>
<view>Success</view>
</views>
<output_type name="html">
<layer name="content" />
<template_variable>_title</template_variable>
<request_attribute
namespace="org.agavi.flash">flash</request_attribute>
<request_attribute
namespace="org.agavi.filter.FormPopulationFilter">populate</request_attribute>
<action_attributes>questions</action_attributes>
</output_type>
</caching>
</cachings>
</configuration>
</configurations>
}}}
I don't want the rss output_type to be cached, but currently it doesn't
run the action so its not passing data to the view.
A patch is attached that will check to see if the delcared output type is
in the caching configurations. If it isn't then it sets isCacheable to
false.
--
Ticket URL: <http://trac.agavi.org/ticket/588>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets