Opened 14 years ago
Closed 11 years ago
#15888 closed Cleanup/optimization (fixed)
Inspect `settings.CACHES` in order to make`createcachetable` automatic
Reported by: | Aymeric Augustin | Owned by: | nobody |
---|---|---|---|
Component: | Core (Cache system) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently createcachetable
requires the cache table name in argument. This information could be taken from the settings instead.
See http://code.djangoproject.com/ticket/15255#comment:2 for a more complete description of the idea.
Attachments (2)
Change History (11)
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Here is a proposed patch for the docs. I'll wait until #15255 gets committed before working on a patch for the code — both tickets touch the same piece of code and the patches would conflict.
by , 14 years ago
Attachment: | 15888-docs.patch added |
---|
comment:4 by , 13 years ago
Owner: | changed from | to
---|
comment:5 by , 12 years ago
I've just attached an initial implementation. Tests should probably be still completed.
The question is now: do we want to keep the legacy behaviour of specifying one or more table names as arguments, or do we want to deprecate this?
comment:6 by , 11 years ago
Has patch: | set |
---|---|
Version: | 1.3 → master |
Patch updated to current trunk and PR created: https://github.com/django/django/pull/1727
comment:7 by , 11 years ago
Patch needs improvement: | set |
---|
Tim suggested some improvements on the pull request.
comment:8 by , 11 years ago
Patch needs improvement: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
comment:9 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Since jacob supported this idea (see http://code.djangoproject.com/ticket/15255#comment:4), I'm marking it as accepted.