Ticket #15806: patch_for_15806.diff

File patch_for_15806.diff, 566 bytes (added by Nikolay Zakharov, 13 years ago)

Initial patch

  • 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):  
    118118            return
    119119
    120120        if self._cull_frequency == 0:
    121             doomed = filelist
     121            doomed = (os.path.join(self._dir, k) for k in filelist)
    122122        else:
    123123            doomed = [os.path.join(self._dir, k) for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]
    124124
Back to Top