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