Need to add clear_expired method like django/contrib/sessions/backends/cache.py:
@classmethod
def clear_expired(cls):
pass
or it will raise NotImplementedError in django/contrib/sessions/backends/base.py
@classmethod
def clear_expired(cls):
"""
Remove expired sessions from the session store.
If this operation isn't possible on a given backend, it should raise
NotImplementedError. If it isn't necessary, because the backend has
a built-in expiration mechanism, it should be a no-op.
"""
raise NotImplementedError
This error occured when we changed to use your SESSION_ENGINE and our code already use the method clear_expired
Need to add clear_expired method like django/contrib/sessions/backends/cache.py:
or it will raise NotImplementedError in django/contrib/sessions/backends/base.py
This error occured when we changed to use your SESSION_ENGINE and our code already use the method
clear_expired