[FIX] web: avoid marking session as modified every time
The `rotate` flag introduced by 31d817e849
was initialized at the very end of the session init, after
the reset of the `modified` flag.
This had the side-effect of marking the session as modified
for every request, saving the session to disk every time
even without any change.
Closes #6795
This commit is contained in:
parent
f57f8c87ab
commit
6e54c8d17a
|
@ -913,11 +913,11 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
|
|||
def __init__(self, *args, **kwargs):
|
||||
self.inited = False
|
||||
self.modified = False
|
||||
self.rotate = False
|
||||
super(OpenERPSession, self).__init__(*args, **kwargs)
|
||||
self.inited = True
|
||||
self._default_values()
|
||||
self.modified = False
|
||||
self.rotate = False
|
||||
|
||||
def __getattr__(self, attr):
|
||||
return self.get(attr, None)
|
||||
|
|
Loading…
Reference in New Issue