Changeset 1946


Ignore:
Timestamp:
04/07/07 23:52:48 (13 years ago)
Author:
rub
Message:

Update #_user_cache.need_update only for pages witch change permission

=> Increase treatment time for NBM for example

Merge BSF 1944:1945 into branch-1_7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/admin.php

    r1915 r1946  
    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.