[FIX] website: http cache some handler dont have routing
This commit is contained in:
@@ -163,7 +163,7 @@ class ir_http(orm.AbstractModel):
|
||||
request.website = request.website.with_context(request.context)
|
||||
|
||||
# cache for auth public
|
||||
cache_time = func.routing.get('cache')
|
||||
cache_time = getattr(func, 'routing', {}).get('cache')
|
||||
cache_enable = cache_time and request.httprequest.method == "GET" and request.website.user_id.id == request.uid
|
||||
cache_response = None
|
||||
if cache_enable:
|
||||
|
||||
Reference in New Issue
Block a user