Skip to content

Commit 22c5cc1

Browse files
ci: merge main to release
2 parents 4580a13 + f4307c7 commit 22c5cc1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ietf/settings_testcrawl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
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',

k8s/settings_local.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)