mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user