From 29433f1db489462a86eb4c694674fb057c0ea5b2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 16 Dec 2013 20:18:56 +0000 Subject: 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 --- include/ws_functions/pwg.groups.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/ws_functions/pwg.groups.php') 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'])); -- cgit v1.2.3