django-appsettings icon indicating copy to clipboard operation
django-appsettings copied to clipboard

Caching

Open timc3 opened this issue 15 years ago • 3 comments
trafficstars

"Load the settings from the database for each request (thread), do not use with caching."

Why can't that be cached? Surely if there is a problem with invalidation, then when you change a setting it such invalidate the cache there?

timc3 avatar Jul 26 '10 08:07 timc3

Sorry, could you provide some context for your quote?

jaredly avatar Jul 26 '10 13:07 jaredly

class SettingsMiddleware(object):

timc3 avatar Aug 25 '10 16:08 timc3

In middleware.py we have that comment that you shouldn't cache the update_db

timc3 avatar Aug 25 '10 16:08 timc3