#15806: Error in filebased cache culling ---------------------+------------------------------------ Reporter: witek@… | Owner: nobody Type: Bug | Status: new Milestone: | Component: Core (Cache system) Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | ---------------------+------------------------------------ In line 115 of filebased.py we have:
{{{ try: filelist = sorted(os.listdir(self._dir)) except (IOError, OSError): return if self._cull_frequency == 0: doomed = filelist else: doomed = [os.path.join(self._dir, k) for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0] }}} In case of _cull_frequency == 0 instead of "doomed = filelist" we should have sth like: {{{ doomed = [os.path.join(self._dir, d) for d in filelist] }}} Otherwise doomed tuple will not contains absolute paths but relative. -- Ticket URL: <http://code.djangoproject.com/ticket/15806> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.