Which version of cake do you use ?
In 1.2,
to clear a cached file, I use cache::delete('filename', 'config
name');
to clear a complete "config", cache:clear(false, 'config_name'); //set
true if you want to clear only the expired files.
hth
On May 30, 6:36 pm, ys <[EMAIL PROTECTED]> wrote:
> Guys, first post here...
>
> I got around with a cron routine for updating some database tables
> calling a stored procedure.
> I then clean the cache for all the controllers involved with this
> database update.
> This is all kosher.
>
> Except for the elements I cache.
>
> heres the snippet :
>
> //TRIGGER THE DATABASE UPDATES
> $this->Cron->query('call sp_ranking;');
>
> //REMOVE CACHED PAGES BASED ON CONTROLLERS
> clearCache('home');
> clearCache('country');
> clearCache('teams');
>
> //REMOVE CACHED ELEMENTS
> clearCache('full_element_name'); //NOT WORKING
> clearCache('partial_element_name'); // NOT WORKING EITHER
>
> I even tried to trigger a cleanCache on the directory that the
> elements are being saved in, but it still didn't work.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---