Refs #5513: improved session performance after [6333]'s session refactoring. Thanks, msaelices.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6365 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2007-09-16 20:11:14 +00:00
parent 0f4fb9755c
commit 771481695f
2 changed files with 2 additions and 1 deletions

View File

@ -196,6 +196,7 @@ answer newbie questions, and generally made Django that much better:
Waylan Limberg <waylan@gmail.com>
limodou
Philip Lindborg <philip.lindborg@gmail.com>
msaelices <msaelices@gmail.com>
Matt McClanahan <http://mmcc.cx/>
Martin Maney <http://www.chipy.org/Martin_Maney>
masonsimon+django@gmail.com

View File

@ -107,7 +107,7 @@ class SessionBase(object):
try:
return self._session_cache
except AttributeError:
if self.session_key is None:
if self._session_key is None:
self._session_cache = {}
else:
self._session_cache = self.load()