From 9d506ca5a64da26674f3fa1a1f38145c186ceb8c Mon Sep 17 00:00:00 2001 From: Raul Gallegos Date: Mon, 25 Jan 2021 20:00:48 -0500 Subject: [PATCH 1/2] adds annotations for XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE --- lms/envs/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index 8ad4f23559..93e501d6e8 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4146,8 +4146,11 @@ MAILCHIMP_NEW_USER_LIST_ID = "" ########################## BLOCKSTORE ##################################### BLOCKSTORE_PUBLIC_URL_ROOT = 'http://localhost:18250' BLOCKSTORE_API_URL = 'http://localhost:18250/api/v1/' -# Which of django's caches to use for storing anonymous user state for XBlocks -# in the blockstore-based XBlock runtime + +# .. setting_name: XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE +# .. setting_default: default +# .. setting_description: Which of django's caches to use for storing anonymous user state for XBlocks +# in the blockstore-based XBlock runtime XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE = 'default' # Blockstore data could contain S3 links, so this should be lower than Blockstore's AWS_QUERYSTRING_EXPIRE From 7bae76b0931d30b2458a34b6ed5d1ee8f33f3980 Mon Sep 17 00:00:00 2001 From: Raul Gallegos Date: Tue, 26 Jan 2021 12:10:19 -0500 Subject: [PATCH 2/2] improves description for XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE --- lms/envs/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index 93e501d6e8..e51a5168de 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4149,8 +4149,7 @@ BLOCKSTORE_API_URL = 'http://localhost:18250/api/v1/' # .. setting_name: XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE # .. setting_default: default -# .. setting_description: Which of django's caches to use for storing anonymous user state for XBlocks -# in the blockstore-based XBlock runtime +# .. setting_description: The django cache key of the cache to use for storing anonymous user state for XBlocks. XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE = 'default' # Blockstore data could contain S3 links, so this should be lower than Blockstore's AWS_QUERYSTRING_EXPIRE