Fix Get User Call

This commit is contained in:
ahmedbodi 2014-02-10 12:56:59 +00:00
parent 9fdd3ddc08
commit 52db8210d8

View File

@ -187,7 +187,10 @@ class DBInterface():
return self.dbi.list_users()
def get_user(self, id):
return self.dbi.get_user(id)
if self.cache.get(id) is None:
self.cache.set(id,self.dbi.get_user(id))
return self.cache.get(id)
def user_exists(self, username):
if self.cache.get(username) is not None: