Commit ae92e7ca91c9b2b49c2b928c19cabe8b58fea05d

Authored by Neil Blakey-Milner
1 parent 0f55c464

KTS-852: cache not invalidated when preferences changed (uses

doLimitedUpdate for some reason)


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5303 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 6 additions and 0 deletions
lib/users/User.inc
... ... @@ -175,6 +175,12 @@ class User extends KTEntity {
175 175 $aParams[] = $this->getId();
176 176  
177 177 $res = DBUtil::runQuery(array($sQuery, $aParams));
  178 +
  179 + $group = sprintf("%s/%s", get_class($this), 'id');
  180 + $oCache =& KTCache::getSingleton();
  181 + $oCache->remove($group, $this->iId);
  182 + $this->clearCachedGroups();
  183 +
178 184 return $res;
179 185 }
180 186  
... ...