Skip to content

Conversation

@seantleonard
Copy link
Contributor

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.

How was this tested?

  • TBD

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending answer to open questions. Aaron and I reviewed together.

Copy link
Contributor

@aaronburtle aaronburtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@seantleonard seantleonard force-pushed the dev/sean/cache_skipWhenReadDbPolicyResolved branch 2 times, most recently from 6f0f7fb to 437ced8 Compare February 6, 2024 01:56
@seantleonard seantleonard force-pushed the dev/sean/cache_skipWhenReadDbPolicyResolved branch from 437ced8 to 1a16ae6 Compare February 6, 2024 02:04
@seantleonard
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@seantleonard seantleonard enabled auto-merge (squash) February 6, 2024 07:05
@seantleonard seantleonard merged commit 19afe75 into release/0.10 Feb 6, 2024
@seantleonard seantleonard deleted the dev/sean/cache_skipWhenReadDbPolicyResolved branch February 6, 2024 07:23
seantleonard added a commit that referenced this pull request Feb 12, 2024
## 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.

## How was this tested?

- TBD
seantleonard added a commit that referenced this pull request Feb 13, 2024
…#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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants