mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Improved userInfos cache cleaner
This commit is contained in:
		@@ -58,10 +58,12 @@ ComunicWeb.user.getUserInfos = {
 | 
				
			|||||||
     * Empty user informations cache
 | 
					     * Empty user informations cache
 | 
				
			||||||
     * Remove all entries from user informations cache
 | 
					     * Remove all entries from user informations cache
 | 
				
			||||||
     * 
 | 
					     * 
 | 
				
			||||||
     * @return {Boolean} False if it fails
 | 
					     * @return {Boolean} True for a success
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    emptyUserInfosCache: function(){
 | 
					    emptyUserInfosCache: function(){
 | 
				
			||||||
        this.userInfos = undefined; //Mark user info cache as undefined
 | 
					        this.userInfos = undefined; //Mark user info cache as undefined
 | 
				
			||||||
        this.userInfos = {}; //Create a new variable
 | 
					        this.userInfos = {}; //Create a new variable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return true;
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user