Caching the current Site object into cache backend
|Reported by:||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 4 years ago by
|Patch needs improvement:||unset|