Opened 18 years ago
Closed 17 years ago
#3766 closed (fixed)
[patch] django.contrib.sites should cache to reduce queries like contenttypes does
Description ¶
As you did with the CONTENT_TYPE_CACHE I would suggest the same be applied with the django.contrib.sites app so that multiple calls to get current (and similar) are not extra queries
Change History (7)
comment:1 by , 18 years ago
Summary: | Site Caching → django.contrib.sites should cache to reduce queries like contenttypes does |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 18 years ago
Attachment: | site_cache.diff added |
---|
Patch to add Site object caching to django.contrib.sites.models.SiteManager
comment:2 by , 18 years ago
Has patch: | set |
---|---|
Summary: | django.contrib.sites should cache to reduce queries like contenttypes does → [patch] django.contrib.sites should cache to reduce queries like contenttypes does |
by , 18 years ago
Attachment: | sites_docs.diff added |
---|
Documentation on the caching and the Site.objects.clear_cache() method.
comment:3 by , 18 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
by , 17 years ago
Attachment: | sites_docs.2.diff added |
---|
Formatting changes to the docs diff: lines wrapped at 80 characters and a "New in Django development version" notice added.
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Where CONTENT_TYPE_CACHE is that which is implemented in django.contrib.contenttypes.models