Re: Caching dynamic url view

2009-10-03 Thread Bert Van den Brande
Maybe it's easier in this case to perform cache reading/writing yourself ? A simple example is given here : http://book.cakephp.org/view/766/Cache-read On Sat, Oct 3, 2009 at 7:59 PM, brian wrote: > > I misunderstood what you were looking to do. > > On Sat, Oct 3, 2009 at 1:16 PM, thinline wro

Re: Caching dynamic url view

2009-10-03 Thread brian
I misunderstood what you were looking to do. On Sat, Oct 3, 2009 at 1:16 PM, thinline wrote: > > > Well most simply because It's not just the 1 page... There are > hundreds of these pages posts/badge/:id/size:180x150 thats what the > route would be. My issue is being able to use cacheAction to g

Re: Caching dynamic url view

2009-10-03 Thread thinline
Well most simply because It's not just the 1 page... There are hundreds of these pages posts/badge/:id/size:180x150 thats what the route would be. My issue is being able to use cacheAction to grab dynamic urls. For instance if I wanted to cache /posts/view/* how could this be done? You would not

Re: Caching dynamic url view

2009-10-03 Thread brian
Why not just create a simplified route for that URL? Something like: '/badge', array('controlller' => 'posts', 'action' => 'your_action', 'id' => 23, 'size' => '180x150') On Fri, Oct 2, 2009 at 10:58 PM, thinline wrote: > > > I am trying to implement full view caching for a specific method in a

Caching dynamic url view

2009-10-03 Thread thinline
I am trying to implement full view caching for a specific method in a controller. First I realized that if you set $this->layout = false; then caching will NOT happen. I have no idea why this occurs. I am not sure if this is a bug as I had a hard time debugging out how the cache works. Once, I