#9986: CACHE_BACKEND argument name doesn't match code
------------------------------------+---------------------------------------
Reporter: john_scott | Owner: nobody
Status: new | Milestone: 1.1
Component: Documentation | Version: 1.0
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by kgrandis):
The code blocks where cull_frequency actually does its magic show that it
is actually doing a frequency calculations:
{{{
doomed = [os.path.join(self._dir, k) for (i, k) in enumerate(filelist) if
i % self._cull_frequency == 0]
}}}
and
{{{
doomed = [k for (i, k) in enumerate(self._cache) if i %
self._cull_frequency == 0]
}}}
The default cull_frequency is 3, so the above code would flag every 3rd
item as doomed (1/f or 1/3). I also have no skin in the game as I have not
made use of this particular parameter, but I do think the code name,
cull_frequency, is the more accurate description.
--
Ticket URL: <http://code.djangoproject.com/ticket/9986#comment:2>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---