Exemplo n.º 1
0
 function afterSave($created)
 {
     parent::afterSave($created);
     $menus = $this->Menu->find('list', array('fields' => array('Menu.id', 'Menu.type')));
     foreach ($menus as $menu) {
         Cache::delete('menu_' . $menu, 'core');
     }
     return true;
 }
Exemplo n.º 2
0
 function afterSave($created)
 {
     parent::afterSave($created);
     Cache::delete('configs', 'core');
     return true;
 }
Exemplo n.º 3
0
 function afterSave($created)
 {
     parent::afterSave($created);
     Cache::delete('current_theme', 'core');
     return true;
 }
Exemplo n.º 4
0
 function afterSave($created)
 {
     parent::afterSave($created);
     $this->__clearCache();
     return true;
 }