[pLog-svn] r4194 - plog/trunk/class/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Oct 27 10:06:02 GMT 2006
Author: oscar
Date: 2006-10-27 10:06:02 +0000 (Fri, 27 Oct 2006)
New Revision: 4194
Modified:
plog/trunk/class/dao/userpermissions.class.php
Log:
this is necessary or else cached data won't get updated
Modified: plog/trunk/class/dao/userpermissions.class.php
===================================================================
--- plog/trunk/class/dao/userpermissions.class.php 2006-10-27 10:05:12 UTC (rev 4193)
+++ plog/trunk/class/dao/userpermissions.class.php 2006-10-27 10:06:02 UTC (rev 4194)
@@ -82,6 +82,9 @@
// if not, grant it now
if(( $result = $this->add( $perm ))) {
$this->_cache->removeData( $perm->getUserId(), CACHE_USER_PERMISSIONS );
+ $this->_cache->removeData( $perm->getUserId(), CACHE_USERINFO );
+ $userInfo = $perm->getUserInfo();
+ $this->_cache->removeData( $userInfo->getUserName(), CACHE_USERIDBYNAME );
}
return( $result );
More information about the pLog-svn
mailing list