Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch Cache Operations can't return an empty list #1677

Open
KhafraDev opened this issue Apr 17, 2023 · 0 comments
Open

Batch Cache Operations can't return an empty list #1677

KhafraDev opened this issue Apr 17, 2023 · 0 comments

Comments

@KhafraDev
Copy link

For batch cache operations, a request/response is appended to the list for every operation, so the list always has a size of number of operations.

Then the cache.delete steps are

  • Let requestResponses be the result of running Batch Cache Operations with operations. If this throws an exception, set errorData to the exception.
  • If requestResponses is not empty, resolve cacheJobPromise with true.

But this also means that when no entries are matched, it also returns a length of 1, meaning it always should be returning true?

I'm sorry if I'm misunderstanding anything but I'm stuck here.

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

No branches or pull requests

1 participant