Ticket #761: django.cache.file.patch
File django.cache.file.patch, 471 bytes (added by , 19 years ago) |
---|
-
cache.py
336 336 return os.path.exists(self._key_to_file(key)) 337 337 338 338 def _cull(self, filelist): 339 if self. cull_frequency == 0:339 if self._cull_frequency == 0: 340 340 doomed = filelist 341 341 else: 342 342 doomed = [k for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]