aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-04-07 21:52:48 +0000
committerrub <rub@piwigo.org>2007-04-07 21:52:48 +0000
commitbb5821e577cf0b88364eb6dae5f568f0edf4d856 (patch)
tree72268858dc55007e557a9e9a555ed5e94d307aa9
parent9c861fd51ba2b4d1f6dcfb70bbb767539593b578 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/admin.php b/admin.php
index 94af4adfc..4a6ca3e51 100644
--- a/admin.php
+++ b/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);
+}
+
?>