I found this and it works excellent.

http://bakery.cakephp.org/articles/view/icache-true-query-caching

On Sep 12, 3:30 pm, Kenchu <[EMAIL PROTECTED]> wrote:
> Thanks!
>
> But what about caching for longer periods, w/o updating? Because as of
> now, if you update a table, then the queries will be remade. I just
> want 1 query to occur once each day for a specific thing..
>
> On Sep 10, 10:53 am, Dave J <[EMAIL PROTECTED]> wrote:
>
> > Hi Kenchu,
>
> > I'm almost sure this is a hack, but it's been working fine for me so
> > far.
>
> > If you want your variables to persist in the cached views, set them
> > like this:
>
> > $this->data['variableName'] = 'variableValue';
>
> > You can have a look at the created cached files in the tmp directory
> > to see what Cake is doing. At the very top, there's a list of
> > variables which are persistent for that cache.
>
> > On Sep 9, 2:27 pm, Kenchu <[EMAIL PROTECTED]> wrote:
>
> > >http://book.cakephp.org/view/347/Marking-N...ontent-in-Views
>
> > > In the link above they've got a cached page, but still within the
> > > <cake:nocache> tags they access a variable called $newProducts. How is
> > > that possible? I've been trying to use the $this->set([...]) function
> > > in the action, beforeFilter and in the __construct, but none of them
> > > worked. Neither the action im caching or beforeFilter would run. Why
> > > putting it in the construct didnt work I dont know.
>
> > > So how do you send data to a nocache tag within a cached page?
>
> > > I also wonder if it's possible to keep acachefor a whole day without
> > > it being updated, even though new posts and updates occur in the
> > > database. According to:
>
> > >http://book.cakephp.org/view/348/Clearing-the-Cache
>
> > > thecacheis cleared for this. I don't want it to be.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to