Skip to content

Commit

Permalink
Merge pull request #45 from vtex-apps/fix/db-caching
Browse files Browse the repository at this point in the history
disable db caching
  • Loading branch information
btalma authored May 12, 2021
2 parents 4851920 + c0fda2f commit cedd620
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Disable cache when getting lists

## [1.7.0] - 2021-05-06

## [1.6.2] - 2021-05-06
Expand Down
4 changes: 4 additions & 0 deletions dotnet/Data/WishListRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public async Task<ResponseListWrapper> GetWishList(string shopperId)
request.Headers.Add(WishListConstants.VtexIdCookie, authToken);
request.Headers.Add(WishListConstants.PROXY_AUTHORIZATION_HEADER_NAME, authToken);
}

request.Headers.Add("Cache-Control", "no-cache");

var client = _clientFactory.CreateClient();
var response = await client.SendAsync(request);
Expand Down Expand Up @@ -229,6 +231,8 @@ public async Task<WishListsWrapper> GetAllLists()
request.Headers.Add(WishListConstants.VtexIdCookie, authToken);
request.Headers.Add(WishListConstants.PROXY_AUTHORIZATION_HEADER_NAME, authToken);
}

request.Headers.Add("Cache-Control", "no-cache");

var client = _clientFactory.CreateClient();
var response = await client.SendAsync(request);
Expand Down

0 comments on commit cedd620

Please sign in to comment.