server/search: fix caching special tokens

special:liked was being reused between users. Now the cache internally
caches object similar to liked:USER.
This commit is contained in:
rr-
2016-06-03 15:51:50 +02:00
parent f0d3589344
commit 8a5c6f0b31
5 changed files with 97 additions and 47 deletions

View File

@ -34,6 +34,7 @@ class Executor(object):
'''
search_query = self.parser.parse(query_text)
self.config.on_search_query_parsed(search_query)
key = (id(self.config), hash(search_query), page, page_size)
if cache.has(key):