forked from overhangio/tutor-mfe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lower MFE config API cache timeout
Calls to the MFE config API endpoint are made with two caches: one on the client side, in the "edx-cache" local storage, and one on the server side. The client side cache has a hard-coded timeout of 5 minutes. I see no reason to have such a high cache timeout on the server side. (cherry picked from commit bf97cae)
- Loading branch information
1 parent
7c1fd1c
commit 0420c14
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# MFE: enable API and set a low cache timeout for the settings. otherwise, weird | ||
# configuration bugs occur. Also, the view is not costly at all, and it's also cached on | ||
# the frontend. (5 minutes, hardcoded) | ||
ENABLE_MFE_CONFIG_API = True | ||
MFE_CONFIG_API_CACHE_TIMEOUT = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters