Sunday, November 29, 2009

Re: Caching custom routes

Yeah, adding a line matching url (not action) do the work!
Thanks Dave for your advice, problem solved :)


On Nov 28, 7:02 pm, Dave <davidcr...@gmail.com> wrote:
> what do you have in your $cacheAction variable in your controller?  Perhaps
> adding a line to match the new routing url?
>
> On Fri, Nov 27, 2009 at 11:21 AM, Quess <miroslaw.niepo...@gmail.com> wrote:
> > Hello,
>
> > Is anybody here who make it working?
> > In my application I have some custom urls and it seems like cache is
> > not working when action is requested via custom route.
>
> > To give you an idea what i talk about:
>
> > If path is like that:
>
> > /public/gown/gown-name-slug
>
> > then action is cached, but when i want to make url more pretty:
>
> >        Router::connect(
> >                '/gown/:slug/*',
> >                array('controller' => 'public', 'action' => 'gown'),
> >                array(
> >                        'pass' => array('slug')
> >                )
> >        );
>
> > and accessing the action like this:
>
> > /gown/gown-slug-name
>
> > action is called properly but cache doesnt works.
>
> > Please help! :)
>
> > Best Regards,
> > Miro
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: