summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-11-09 18:29:58 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-11-09 18:29:58 +0000
commit31d18380f9dd7b66dfd89857f116a4995990e315 (patch)
tree9cf45b2df167c160684208b5f2884e3f0aea13e3
parentf85cd32dbda85b6683b6b8a0882f7bc88fb3d060 (diff)
downloaddjango-31d18380f9dd7b66dfd89857f116a4995990e315.tar.gz
Fixed #761; thanks, Eugene
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/cache.py b/django/core/cache.py
index caeb315f05..a479d16dc3 100644
--- a/django/core/cache.py
+++ b/django/core/cache.py
@@ -336,7 +336,7 @@ class _FileCache(_SimpleCache):
return os.path.exists(self._key_to_file(key))
def _cull(self, filelist):
- if self.cull_frequency == 0:
+ if self._cull_frequency == 0:
doomed = filelist
else:
doomed = [k for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]