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

Commit 2bda974

Browse files
committed
Add tags to be able to purge attributes from cache
1 parent b75a263 commit 2bda974

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/attribute/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ async function setAttributeInCache (attributeList, config) {
6262
await Promise.all(
6363
attributeList.map(attribute => (cache as TagCache).set(
6464
'api:attribute-list' + attribute.attribute_code,
65-
attribute
65+
attribute,
66+
['attribute']
6667
))
6768
)
6869
} catch (err) {

0 commit comments

Comments
 (0)