aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions/pwg.groups.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-12-16 20:18:56 +0000
committerrvelices <rv-github@modusoptimus.com>2013-12-16 20:18:56 +0000
commit29433f1db489462a86eb4c694674fb057c0ea5b2 (patch)
treeeb6467ccd9dd1de696f195b1f00d32fa3306b3df /include/ws_functions/pwg.groups.php
parent5c9b9c43f549357b5c09c402f7e49a6006bb62bc (diff)
invalidate_user_cache fix in web service method + do not invalidate user cache on every page hit on album list, photo etc ...
git-svn-id: http://piwigo.org/svn/trunk@25975 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/ws_functions/pwg.groups.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ws_functions/pwg.groups.php b/include/ws_functions/pwg.groups.php
index 3ae200bec..57b4766b8 100644
--- a/include/ws_functions/pwg.groups.php
+++ b/include/ws_functions/pwg.groups.php
@@ -149,6 +149,9 @@ DELETE
;';
pwg_query($query);
+ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+ invalidate_user_cache();
+
return new PwgNamedArray($groupnames, 'group_deleted');
}
@@ -246,6 +249,7 @@ SELECT COUNT(*)
array('ignore'=>true)
);
+ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
invalidate_user_cache();
return $service->invoke('pwg.groups.getList', array('group_id' => $params['group_id']));
@@ -280,6 +284,7 @@ DELETE FROM '. USER_GROUP_TABLE .'
;';
pwg_query($query);
+ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
invalidate_user_cache();
return $service->invoke('pwg.groups.getList', array('group_id' => $params['group_id']));