From 771481695f0e53556824bdd64662efea87d55f32 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sun, 16 Sep 2007 20:11:14 +0000 Subject: [PATCH] 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 --- AUTHORS | 1 + django/contrib/sessions/backends/base.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index f382eb6b55..794d5249d1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -196,6 +196,7 @@ answer newbie questions, and generally made Django that much better: Waylan Limberg limodou Philip Lindborg + msaelices Matt McClanahan Martin Maney masonsimon+django@gmail.com diff --git a/django/contrib/sessions/backends/base.py b/django/contrib/sessions/backends/base.py index 9471706363..382212bb70 100644 --- a/django/contrib/sessions/backends/base.py +++ b/django/contrib/sessions/backends/base.py @@ -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()