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 git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1946 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9c861fd51b
commit
bb5821e577
1 changed files with 8 additions and 3 deletions
11
admin.php
11
admin.php
|
@ -159,10 +159,15 @@ include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
|||
// +-----------------------------------------------------------------------+
|
||||
// | order permission refreshment |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$query = '
|
||||
// Only for pages witch change permissions
|
||||
if (in_array($page['page'], array('cat_options', 'cat_perm',
|
||||
'group_perm', 'site_update', 'user_list', 'user_perm')))
|
||||
{
|
||||
$query = '
|
||||
UPDATE '.USER_CACHE_TABLE.'
|
||||
SET need_update = \'true\'
|
||||
;';
|
||||
pwg_query($query);
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue