mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #21608 -- Fixed incorrect cache key in cache session backend's save().
The bug was introduced commit 3389c5ea22.
This commit is contained in:
@@ -57,7 +57,7 @@ class SessionStore(SessionBase):
|
||||
return self.create()
|
||||
if must_create:
|
||||
func = self._cache.add
|
||||
elif self._cache.get(self.session_key) is not None:
|
||||
elif self._cache.get(self.cache_key) is not None:
|
||||
func = self._cache.set
|
||||
else:
|
||||
raise UpdateError
|
||||
|
||||
Reference in New Issue
Block a user