# HG changeset patch # User Mads Kiilerich # Date 2015-03-06 16:21:24 # Node ID 8b08599d4b088688ec09d05291fb233a68e29db5 # Parent a5475229ba28f28882cd118e637641f5ceb64794 db: fix beaker cache key for user groups - don't collide with users diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -839,7 +839,7 @@ class UserGroup(Base, BaseModel): if cache: q = q.options(FromCache( "sql_cache_short", - "get_user_%s" % _hash_key(group_name) + "get_group_%s" % _hash_key(group_name) ) ) return q.scalar()