Hi all! Writing $cacheManager = sfContext::getInstance()->getViewCacheManager(); in the model results $cacheManager being null. Is this normal?
I though I can mix cache clearing to the model like this: sfMixer::register('BaseSystemcmspage:save:post', array('Systemcmspage', 'afterSave')); public function afterSave($object, $con) { $cacheManager = sfContext::getInstance()->getViewCacheManager(); $cacheManager->remove('systemcmspage/view?slug=' . $object- >getSlug()); } Note, that I use admin generator. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---