Ticket #15806: patch_for_15806.diff
File patch_for_15806.diff, 566 bytes (added by , 13 years ago) |
---|
-
django/core/cache/backends/filebased.py
diff --git a/django/core/cache/backends/filebased.py b/django/core/cache/backends/filebased.py index 57bb63e..9596774 100644
a b class FileBasedCache(BaseCache): 118 118 return 119 119 120 120 if self._cull_frequency == 0: 121 doomed = filelist121 doomed = (os.path.join(self._dir, k) for k in filelist) 122 122 else: 123 123 doomed = [os.path.join(self._dir, k) for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0] 124 124