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

fix(🐛): Skip all response caches when response caching is disabled #537

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

wwilsman
Copy link
Contributor

Purpose

There is a hidden layer of caching that doesn't cache request responses, but only caches processed responses. So in the past, requests might hang even though they had been processed. This processed cache is not accessible when the request is made due to the entangled nature of the various service classes and callbacks. A new response cache was created with #419 behind a flag, then once proven successful, the flag was turned on with #469.

However, it appears that this original processed response cache is causing issues when the same URL is expected to return different assets. This should be possible by disabling the response cache, but that flag only affects the new cache.

Approach

Pass the cache flag down to the response service so it can skip returning cached responses.

This entire layer of caching could be removed since it is redundant with the new cache. However, we could also rewrite this class to be a single helper rather than a service, but that can also be said of other service classes so I'll leave that to a future refactor.

@wwilsman wwilsman requested a review from Robdel12 July 22, 2020 17:36
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁

@wwilsman wwilsman merged commit 6ddb9a0 into master Jul 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the ww/skip-response-cache branch July 22, 2020 17:42
djones pushed a commit that referenced this pull request Jul 22, 2020
## [0.27.2](v0.27.1...v0.27.2) (2020-07-22)

### Bug Fixes

* **🐛:** Skip all response caches when response caching is disabled ([#537](#537)) ([6ddb9a0](6ddb9a0))
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.

None yet

2 participants