From 31d18380f9dd7b66dfd89857f116a4995990e315 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 9 Nov 2005 18:29:58 +0000 Subject: [PATCH] Fixed #761; thanks, Eugene git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]