Ticket #761: django.cache.file.patch

File django.cache.file.patch, 471 bytes (added by eugene@…, 9 years ago)
  • cache.py

     
    336336        return os.path.exists(self._key_to_file(key))
    337337
    338338    def _cull(self, filelist):
    339         if self.cull_frequency == 0:
     339        if self._cull_frequency == 0:
    340340            doomed = filelist
    341341        else:
    342342            doomed = [k for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]
Back to Top