Caching the current Site object into cache backend
|Reported by:||astafiev.anton@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As it is described here current site object is cached.
I was very surprised, when it turned out, that this object is cached into sites.models.SITE_CACHE dictionary
I think, that Django should use the same cache engine everywhere. Caching into global objects could produce problems that are very hard to diagnose. Also, it is much easier to have only one interface to flush the cache.
I propose to use standard cache interface here. I could provide the patch, if you think it is reasonable.
Change History (4)
comment:1 Changed 3 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 3 years ago by russellm
- Resolution set to wontfix
- Status changed from new to closed
comment:3 Changed 3 years ago by kmtracey
- Resolution wontfix deleted
- Status changed from closed to reopened