Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 74ac147

Browse files
Merge pull request #333 from gastrohero/feature/fixed-output-cache
Added request url to the reqHash
2 parents d3d0e78 + c1026e9 commit 74ac147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [1.11.0-rc.1] - UNRELEASED
88

99
### Added
10-
- Output cache support with tagging and cache invalidate requests forwarding - @pkarw (https://github.com/DivanteLtd/vue-storefront/issues/3367)
10+
- Output cache support with tagging and cache invalidate requests forwarding - @pkarw @resubaka (https://github.com/DivanteLtd/vue-storefront/issues/3367, #333)
1111
- Constant for Mailchimp subscription status - @KonstantinSoelch (#294)
1212
- mage2vs import now has optional `--generate-unique-url-keys` parameter which defaults to `false` to enable/disable the url key generation with name and id for categories - @rain2o (#232)
1313
- `extensions/elastic-stock` module added which is a drop-in replacement for `stock`; the difference is that it's getting the stock information from Elastic, not from e-Commerce backend directly; to use it - please just make sure your `config/local.json` file has `elastic-stock` in the `registeredExtensions` collection; then please make sure in the `vue-storefront` to change the `config.stock.ednpoint` from `http://<your-api-host>/api/stock` to `http://<your-api-host>/api/ext/elastic-stock`

src/api/catalog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default ({config, db}) => function (req, res, body) {
102102
};
103103
}
104104
const s = Date.now()
105-
const reqHash = sha3_224(JSON.stringify(requestBody))
105+
const reqHash = sha3_224(`${JSON.stringify(requestBody)}${req.url}`)
106106
const dynamicRequestHandler = () => {
107107
request({ // do the elasticsearch request
108108
uri: url,

0 commit comments

Comments
 (0)