Changeset 9934

Show
Ignore:
Timestamp:
11/14/08 16:04:33 (2 months ago)
Author:
afz
Message:

update cache stuff in Menu gadget

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Menu/AdminModel.php

    r9912 r9934  
    226226        //remove cached file 
    227227        $GLOBALS['app']->Cache->delete('Menu', 'Display', $gid); 
     228        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    228229 
    229230        $GLOBALS['app']->Session->PushLastResponse($mid.'%%' . _t('MENU_NOTICE_MENU_CREATED'), RESPONSE_NOTICE); 
     
    278279        //remove cached file 
    279280        $GLOBALS['app']->Cache->delete('Menu', 'Display', $gid); 
     281        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    280282 
    281283        $GLOBALS['app']->Session->PushLastResponse(_t('MENU_NOTICE_GROUP_UPDATED'), RESPONSE_NOTICE); 
     
    328330        //remove cached file 
    329331        $GLOBALS['app']->Cache->delete('Menu', 'Display', $gid); 
     332        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    330333 
    331334        $GLOBALS['app']->Session->PushLastResponse(_t('MENU_NOTICE_MENU_UPDATED'), RESPONSE_NOTICE); 
     
    365368        //remove cached file 
    366369        $GLOBALS['app']->Cache->delete('Menu', 'Display', $gid); 
     370        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    367371 
    368372        $sql = 'DELETE FROM [[menus_groups]] WHERE [id] = {gid}'; 
     
    375379        //remove cached file 
    376380        $GLOBALS['app']->Cache->delete('Menu', 'Display', $gid); 
     381        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    377382 
    378383        $GLOBALS['app']->Session->PushLastResponse(_t('MENU_NOTICE_GROUP_DELETED', $gid), RESPONSE_NOTICE); 
     
    419424        //remove cached file 
    420425        $GLOBALS['app']->Cache->delete('Menu', 'Display', $menu['gid']); 
     426        $GLOBALS['app']->Cache->delete('Menu', 'DefaultAction'); 
    421427 
    422428        return true;