File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 277277# Override this in settings_local.py if needed
278278CACHE_MIDDLEWARE_SECONDS = 300
279279CACHE_MIDDLEWARE_KEY_PREFIX = ''
280+
281+ # The default with no CACHES setting is 'django.core.cache.backends.locmem.LocMemCache'
280282if SERVER_MODE == 'production' :
281- CACHE_BACKEND = 'file://' + '/a/www/ietf-datatracker/cache/'
282- else :
283- # Default to no caching in development/test, so that every developer
284- # doesn't have to set CACHE_BACKEND in settings_local
285- CACHE_BACKEND = 'dummy:///'
286283
287- # For readonly database operation
288- # CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
289- # SESSION_ENGINE = "django.contrib.sessions.backends.cache"
284+ CACHES = {
285+ 'default' : {
286+ 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache' ,
287+ 'LOCATION' : '127.0.0.1:11211' ,
288+ }
289+ }
290+ else :
291+ # Default to no caching in development/test
292+ CACHES = {
293+ 'default' : {
294+ 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache' ,
295+ }
296+ }
290297
291298IPR_EMAIL_TO = ['ietf-ipr@ietf.org' , ]
292299DOC_APPROVAL_EMAIL_CC = ["RFC Editor <rfc-editor@rfc-editor.org>" , ]
You can’t perform that action at this time.
0 commit comments