okie..after some search I found this article

http://bakery.cakephp.org/articles/view/optimizing-your-cakephp-elements-and-views-with-caching

So it seems I can use
@unlink(CACHE.'views'.DS.'element__getposts');

to clear the renderedElement

However, the problem is my app/tmp/view foler is empty ...does it mean
that my cache is not working ??

bingo

On May 18, 7:11 pm, bingo <[EMAIL PROTECTED]> wrote:
> hi bakers,
>
> I have a persistent data on left hand side of a page. I followed
> (http://bakery.cakephp.org/articles/view/persistent-data)
> this tutorial to create persistent data display
>
> To avoid querying database everytime page referesh, I am caching the
> data. To cache the rendered element I am using
> echo $this->renderElement('div_list', array('list' =>
> $quickAccess['BlogsUser'], 'cache' => "+1 hour"));
>
> This all works great..but now there is a situation where I want to
> clear the cache of the element. But I am not able to find anything
> that tells how to force clear cache for an element.
>
> Regards,
> bingo


--~--~---------~--~----~------------~-------~--~----~
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