[FIX] website: ir.http cache add lang in key

This commit is contained in:
Antony Lesuisse
2015-05-18 11:06:34 +02:00
parent ffd72b7f58
commit 49a5a355c2
+1 -1
View File
@@ -167,7 +167,7 @@ class ir_http(orm.AbstractModel):
cache_enable = cache_time and request.httprequest.method == "GET" and request.website.user_id.id == request.uid
cache_response = None
if cache_enable:
key = (self._name, "cache", request.uid, request.httprequest.full_path)
key = (self._name, "cache", request.uid, request.lang, request.httprequest.full_path)
try:
r = self.pool.cache[key]
if r['time'] + cache_time > time.time():