You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When utilising facets on Graph Queries lets say for Listing Pages, in this case blog-listing-block when we publish the content the facets disappear as demonstrated in this video:
So I have had some great feedback from @remkoj regarding this issue for those who run into something similar it could be worth disabling the cached stored query execution.
e.g.
const { CmsPage, generateMetadata, generateStaticParams } = OptimizelyCmsPage.createPage(getFactory(), { getContentByPath: getContentByPath as OptimizelyCmsPage.GetContentByPathMethod, client: () => { const client = getServerClient() client.updateFlags({ queryCache: false // We're depending on @recursive & cursors, which don't work with the queryCache }) return client } })
Some notes from Remko;
There's a difference in how the queries are sent to Graph, especially with regards to cache - I've put in some defaults in the ContentGraphClient to be pretty aggressive with caching to ensure the best possible performance.
So by default I have the query cache (i.e. the transformation of the GraphQL query to the underlying data query) as well as the output cache (i.e. the GraphQL query to GraphQL response) enabled.
The fact that a recompilation fixes the problem (i.e. the query changes) and the problem is not present in the explorer suggests it has to do with the query cache.
When utilising facets on Graph Queries lets say for Listing Pages, in this case blog-listing-block when we publish the content the facets disappear as demonstrated in this video:
https://www.loom.com/share/a4bc9f5b5be54e4b8b44d2b7b4d90fd9?sid=10d20d68-14e4-4412-994c-8c8794df2a6f
The text was updated successfully, but these errors were encountered: