mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 06:14:54 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user