-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cherrypick] Cache enablement check and dab-draft.schema.json changes (…
…#2033) Cherry picks #2011 and #2012 to main # 2012 ## Why make this change? - Ensure cache is used when enabled and add additional checks to make this flow as expected. ## What is this change? - Change cache check to ensure dbpolicies are NOT resolved for request in order to use cache - Add check to ensure entity cache is enabled. # 2011 ## Why this change? This change follows up on #1865, which adds caching support. VSCode suggesting the new `cache` properties were errors when included in the config file. That is because the properties needed to be added to the json schema. Global `cache` property in the `runtime` section which adjacent to `rest`, `graphql`, and `host`. ```json { "runtime": { "cache": { "enabled": false, "ttl-seconds": 5 } } } ``` and per entity alongside `source`, `graphql`, `rest`, and `permissions` ```json { "myEntity": { "cache": { "enabled": false, "ttl-seconds": 5 } } } ``` --------- Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>
- Loading branch information
1 parent
d763a83
commit a64c277
Showing
2 changed files
with
43 additions
and
1 deletion.
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
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