aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-01-18 20:57:36 +0000
committerrvelices <rv-github@modusoptimus.com>2011-01-18 20:57:36 +0000
commit90911d747fd2cc706bfd6ec44a1c5aa4c0455eae (patch)
tree25e33d48f0bf8ce035900598ce2a88482caef60f /admin.php
parent7889e86b9b772e4aaf8e5ebcf97c5b8fff5be9d1 (diff)
- batch manager was not calling invalidate_user_cache
- batch manager can delete photos added by ftp - call sync_users on admin page less often (too many sql queries) git-svn-id: http://piwigo.org/svn/trunk@8756 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/admin.php b/admin.php
index a93570e43..19c1661ed 100644
--- a/admin.php
+++ b/admin.php
@@ -69,8 +69,10 @@ if (isset($_GET['change_theme']))
// +-----------------------------------------------------------------------+
// | synchronize user informations |
// +-----------------------------------------------------------------------+
-
-sync_users();
+if (mt_rand(0,9)==0)
+{
+ sync_users();
+}
// +-----------------------------------------------------------------------+
// | variables init |
@@ -197,7 +199,6 @@ if (
'cat_move', // ?only POST
'cat_options', // ?only POST; public/private; lock/unlock
'cat_perm', // ?only POST
- 'element_set', // ?only POST; associate/dissociate
'picture_modify', // ?only POST; associate/dissociate
'user_list', // ?only POST; group assoc
'user_perm',
@@ -205,6 +206,12 @@ if (
'group_list', // delete group
)
)
+ or ( isset($_POST) and in_array($page['page'],
+ array(
+ 'batch_manager', // associate/dissociate; delete; set level
+ )
+ )
+ )
)
{
invalidate_user_cache();