-
Hi! I have (a Redwood Cell with) this query query StoreProductQuery($sku: String!, $lang: String) {
categories(lang: $lang) {
id
name
parent
}
product(sku: $sku, lang: $lang) {
sku
name
short_desc
long_desc
regular_price
unavailable
images
}
} And this cache config {
ttl: 0,
ttlPerSchemaCoordinate: {
'Query.allProducts': ONE_HOUR,
'Query.featuredProducts': ONE_DAY,
'Query.topSellers': ONE_DAY,
'Query.rootProducts': ONE_DAY,
'Query.categories': ONE_DAY,
},
} With this config the whole query is cached for a day. I also tested this {
ttl: 0,
ttlPerSchemaCoordinate: {
'Query.allProducts': ONE_HOUR,
'Query.featuredProducts': ONE_DAY,
'Query.topSellers': ONE_DAY,
'Query.rootProducts': ONE_DAY,
'Query.categories': ONE_DAY,
'Query.product': 0,
},
} With this I get no caching at all. Is there any way to use cached data for the categories, but fresh data for products? EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @Tobbe Sorry for the late reply. Right now we don't have the intention of changing the response cache to to modular/normalized caching (similar to GraphQL frontend clients). We are happy to see other people trying to innovate in that space and support those! |
Beta Was this translation helpful? Give feedback.
Hey @Tobbe
Sorry for the late reply. Right now we don't have the intention of changing the response cache to to modular/normalized caching (similar to GraphQL frontend clients). We are happy to see other people trying to innovate in that space and support those!