you could modify this behavior to save in a way that cross-table- deletion is easier possible for instance saving all involved models in the filename:
model1_model2_model3_hashname so if you have changes in model2, you can delete *_model2_* that's just an idea. it can get problematic with many models and therefore too lang filenames On 7 Feb., 19:35, 100rk <[email protected]> wrote: > There is also Model::_clearCache() method, called after save/delete. > > class AppModel extends Model { > > protected function _clearCache($type = null) { > if ($this->Behaviors->enabled('Autocache.Autocache')) { > // Cache::delete('xxx', 'yyy'); > } > return parent::_clearCache($type); > } > > > > > > > > } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
