Hi Kevin,
Great idea, I'm looking forward to see your proposal. 

But what's about just writing (sub classing) a new Router, which caches just
in the route function. Like if the routes-array do not change since the last
request, take the path infos and look if they allread in the cache, if not
calculate the route and cache them.
Cheers,
Leo   

________________________________________
Von: Kevin McArthur [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 30. Juli 2007 21:45
An: [email protected]
Betreff: [fw-general] Seeking Zend_Controller_Router_Route_Immutable

I'm currently looking for a solution before putting together a proposal for
a currently non-existant class Zend_Controller_Router_Route_Immutable.
 
This would be a caching solution for routes that would allow you to define a
route as always having the same output for a given input and to cache its
response such that it can bypass the dispatch process completely if it has
been previously generated.
 
$router->addRoute('cached', new
Zend_Controller_Router_Route_Immutable('/route'));
 
This could be a significant performance increase, but I'm looking for an
elegant solution in terms of modifying the actual framework to support it
rather than creating a plugin or something else that occurs -during-
dispatch.
 
Thoughts?
 
Kevin


Reply via email to