@scayle/storefront-core 7.42.0 → 7.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -36,7 +36,7 @@ const getCategoryByPath = exports.getCategoryByPath = async function getCategory
|
|
|
36
36
|
} = context;
|
|
37
37
|
const sanitizedPath = (0, _helpers.splitAndRemoveEmpty)(path);
|
|
38
38
|
return await cached(bapiClient.categories.getByPath, {
|
|
39
|
-
cacheKeyPrefix: `getByPath-
|
|
39
|
+
cacheKeyPrefix: `getByPath-category-${sanitizedPath}`
|
|
40
40
|
})(sanitizedPath, {
|
|
41
41
|
with: {
|
|
42
42
|
children
|
|
@@ -15,7 +15,7 @@ export const getCategoryByPath = async function getCategoryByPath2({ path, child
|
|
|
15
15
|
const { cached, bapiClient } = context;
|
|
16
16
|
const sanitizedPath = splitAndRemoveEmpty(path);
|
|
17
17
|
return await cached(bapiClient.categories.getByPath, {
|
|
18
|
-
cacheKeyPrefix: `getByPath-
|
|
18
|
+
cacheKeyPrefix: `getByPath-category-${sanitizedPath}`
|
|
19
19
|
})(sanitizedPath, { with: { children }, includeHidden });
|
|
20
20
|
};
|
|
21
21
|
export const getCategoriesByPath = async function getCategoriesByPath2({ path, children = 1, includeHidden }, context) {
|