Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ietf/settings_testcrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
'MAX_ENTRIES': 10000,
},
},
'proceedings': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
'sessions': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
# No version-specific VERSION setting.
},
'htmlized': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
Expand Down
11 changes: 11 additions & 0 deletions k8s/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,17 @@ def _multiline_to_list(s):
"LOCATION": f"{MEMCACHED_HOST}:{MEMCACHED_PORT}",
"VERSION": __version__,
"KEY_PREFIX": "ietf:dt",
# Key function is default except with sha384-encoded key
"KEY_FUNCTION": lambda key, key_prefix, version: (
f"{key_prefix}:{version}:{sha384(str(key).encode('utf8')).hexdigest()}"
),
},
"proceedings": {
"BACKEND": "ietf.utils.cache.LenientMemcacheCache",
"LOCATION": f"{MEMCACHED_HOST}:{MEMCACHED_PORT}",
# No release-specific VERSION setting.
"KEY_PREFIX": "ietf:dt:proceedings",
# Key function is default except with sha384-encoded key
"KEY_FUNCTION": lambda key, key_prefix, version: (
f"{key_prefix}:{version}:{sha384(str(key).encode('utf8')).hexdigest()}"
),
Expand Down