aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-14 08:14:59 +0000
committermistic100 <mistic@piwigo.org>2014-06-14 08:14:59 +0000
commita02717a8793115bdb7223482ce3cc72beee21ff6 (patch)
tree2b5d77d44f518b25eadf4e64a6a2f26e7bae222a
parent4edd40080c17bc8217ec2b77da0b9ae7ee430c04 (diff)
on batch manager global move "invalidate_user_cache" AFTER database updates (SmartAlbums compatibility)
git-svn-id: http://piwigo.org/svn/trunk@28700 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/batch_manager_global.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index b4e5e2cb4..4e4e2bd1a 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -87,11 +87,6 @@ if (isset($_POST['submit']))
$action = $_POST['selectAction'];
- if (!in_array($action, array('remove_from_caddie','add_to_caddie','delete_derivatives','generate_derivatives')))
- {
- invalidate_user_cache();
- }
-
if ('remove_from_caddie' == $action)
{
$query = '
@@ -404,6 +399,11 @@ DELETE
}
}
+ if (!in_array($action, array('remove_from_caddie','add_to_caddie','delete_derivatives','generate_derivatives')))
+ {
+ invalidate_user_cache();
+ }
+
trigger_notify('element_set_global_action', $action, $collection);
}