get rid of the @ in front of unlink, see if any errors are thrown.
On 6/25/07, bingo <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am caching element and if update is made to the database record, I
> clear the cache for that element. However, it seems the cache never
> gets cleared as my view do not show updated content. I am using
> @unlink to clear the cache and here is how things are setup in my
> controller
>
> if($this->{$this->modelClass}->saveField($field, $value)){
> @unlink(CACHE.'views'.DS.element__summary_element');
>
> }
>
> How can I check whether the cache was deleted as I believe unlink only
> removes all the pointers to that file rather than deleting the file.
> Any help will be appreciated
>
> Ritesh
> http://findnwrite.com
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---