File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 2727 'MAX_ENTRIES' : 10000 ,
2828 },
2929 },
30+ 'proceedings' : {
31+ 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
32+ },
3033 'sessions' : {
3134 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' ,
32- # No version-specific VERSION setting.
3335 },
3436 'htmlized' : {
3537 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache' ,
Original file line number Diff line number Diff line change @@ -301,6 +301,17 @@ def _multiline_to_list(s):
301301 "LOCATION" : f"{ MEMCACHED_HOST } :{ MEMCACHED_PORT } " ,
302302 "VERSION" : __version__ ,
303303 "KEY_PREFIX" : "ietf:dt" ,
304+ # Key function is default except with sha384-encoded key
305+ "KEY_FUNCTION" : lambda key , key_prefix , version : (
306+ f"{ key_prefix } :{ version } :{ sha384 (str (key ).encode ('utf8' )).hexdigest ()} "
307+ ),
308+ },
309+ "proceedings" : {
310+ "BACKEND" : "ietf.utils.cache.LenientMemcacheCache" ,
311+ "LOCATION" : f"{ MEMCACHED_HOST } :{ MEMCACHED_PORT } " ,
312+ # No release-specific VERSION setting.
313+ "KEY_PREFIX" : "ietf:dt:proceedings" ,
314+ # Key function is default except with sha384-encoded key
304315 "KEY_FUNCTION" : lambda key , key_prefix , version : (
305316 f"{ key_prefix } :{ version } :{ sha384 (str (key ).encode ('utf8' )).hexdigest ()} "
306317 ),
You can’t perform that action at this time.
0 commit comments