Fixed #761; thanks, Eugene
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f85cd32dbd
commit
31d18380f9
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue