Monday, August 3, 2009

Re: Caching doesn't work with the routes

I have the same issue. Has anybody out there run into this or found a
solution?

On Jul 28, 7:07 pm, Sergei <yatse...@gmail.com> wrote:
> Hello,
>
> I'm using CakePHP 1.2.3 and it looks like caching routed actions
> doesn't work at all.
>
> I have a route:
>
> Router::connect('/script/:site', array('controller' => 'projects',
> 'action' => 'js'), array('pass'=>array('site'),'site'=>'[A-Za-
> z0-9]+'));
>
> Router::parseExtensions('rss','js');
>
> So this url is like "/script/name.js" is redirected to "projects/js"
> action.
>
> In projects controller i have acacheAction:
>
> var $cacheAction= array(
>         'js' => "1 hour", // action with route - doesn't work
>         'index' => "1 hour", // action without route - works
> );
>
> And it just doesn't cache anything. Caching actions *without* route,
> like for example, projects/index, works.
>
> Is it a bug or feature, and does it have a solution?
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: