Added cache system

This commit is contained in:
Pierre
2017-06-14 11:46:10 +02:00
parent aa74943b01
commit f750165c3e
13 changed files with 295 additions and 26 deletions

View File

@ -200,4 +200,19 @@ ComunicWeb.user.userInfos = {
afterNames(usersName);
});
},
}
/**
* Empty users cache
*
* @return {Boolean} True for a success
*/
emptyCache: function(){
this.usersInfos = {};
//Success
return true;
}
};
//Register cache cleaner
ComunicWeb.common.cacheManager.registerCacheCleaner("ComunicWeb.user.userInfos.emptyCache");