Changeset 1945


Ignore:
Timestamp:
04/07/07 23:49:38 (13 years ago)
Author:
rub
Message:

Update #_user_cache.need_update only for pages witch change permission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r1915 r1945  
    160160// |                     order permission refreshment                      | 
    161161// +-----------------------------------------------------------------------+ 
    162  
    163 $query = ' 
     162// Only for pages witch change permissions 
     163if (in_array($page['page'], array('cat_options', 'cat_perm',  
     164    'group_perm', 'site_update', 'user_list', 'user_perm'))) 
     165{ 
     166  $query = ' 
    164167UPDATE '.USER_CACHE_TABLE.' 
    165168  SET need_update = \'true\' 
    166169;'; 
    167 pwg_query($query); 
     170  pwg_query($query); 
     171} 
     172 
    168173?> 
Note: See TracChangeset for help on using the changeset viewer.