Closed unicornsleuth closed 3 years ago
Text from PR: What this PR Does:
To Test:
(1) in VSCode add the line "CACHE_TOGGLE": "On"
to functions/local.settings.json
(2) under the "Run/Debug" tab in VSCode, run the functions
(3) go to Postman, c/p the endpoint for /users that VSCode will display on the terminal
(4) run a GET
(5) run another GET
(6) run a POST with a body like so:
{
"firstName": "First",
"lastName": "Last",
"email": "email@email.com"
}
(7) run (yet) another GET
(8) Change the CACHE_TOGGLE value in /functions/local.settings.json to "Off"
(9) run a GET
(10) run a POST with a body like in (6)
Researching, coding, testing, & writing PR: 4 hrs 30 mins
Changes cache key from "users" to "users:all" Whenever a POST is made to /users, the users:all cache will be deleted Adds Feature Flag to enable/disable caching