Awesome. I was looking for a way to do that. Thanks for the input.

On 7/5/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
>
>
> Found a way to do it using cake without modifying the core libs. This
> is a workaround, but does the job.
>
> $this->element('tagCloud', array('cache'=>'+1 day', 'plugin'=>
> $userId));
>
> so this would create the file 'element_$userId_tagCloud' in the cache
> folder for views.
>
> Now to delete it,
>
> $this->clearCache('element_$userId_tagCloud', 'views', '');
>
> I am faking plugin to be the userid, but this works and does my job.
> Hopefully, this might help someone else.
>
> Cheers,
>
> Ketan ;-)
>
>
> Chris Hartjes wrote:
> > On 7/5/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
> > >
> > > Can some one pls shed some light here.
> >
> > I don't think Cake can help you out there.  What you might have to do
> > is code your element in such a way that it does the caching itself
> > based on a unique ID.  You might consider a small file-based caching
> > system.  Not easy, but what you're asking for isn't easy.
> >
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
> >
> > My motto for 2007:  "Just build it, damnit!"
> >
> > @TheBallpark - http://www.littlehart.net/attheballpark
> > @TheKeyboard - http://www.littlehart.net/atthekeyboard
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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