From ae92e7ca91c9b2b49c2b928c19cabe8b58fea05d Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Fri, 21 Apr 2006 15:23:14 +0000 Subject: [PATCH] KTS-852: cache not invalidated when preferences changed (uses doLimitedUpdate for some reason) --- lib/users/User.inc | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/users/User.inc b/lib/users/User.inc index 83cefd9..daf9ad0 100644 --- a/lib/users/User.inc +++ b/lib/users/User.inc @@ -175,6 +175,12 @@ class User extends KTEntity { $aParams[] = $this->getId(); $res = DBUtil::runQuery(array($sQuery, $aParams)); + + $group = sprintf("%s/%s", get_class($this), 'id'); + $oCache =& KTCache::getSingleton(); + $oCache->remove($group, $this->iId); + $this->clearCachedGroups(); + return $res; } -- libgit2 0.21.4