Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

GraphQL and Content Fragment changes not visible in publish instance after publishing

Avatar

Level 4

Hi Team,

When I make changes to Content Fragments, Models and GraphQL query and publish all of them, I don't see the changes reflected in publish instance. I could see them in author instance though. I waited for about 30 mins, still I don't see them in publish. I'm checking this in dev environment.
Is there a way I can manually flush the GraphQL cache?

 

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

7 Replies

Avatar

Level 4

Do you have access to publisher IPs ? Can you first check on publisher directly (by-passing any dispatcher) to omit caching issues.
Also, if its not a cloud instance you can verify the updates in crx.

Next you can check the replication queue on author if all this actually got published.

 

Avatar

Level 4

Hi @maheshp ,

Thanks for the response. How do I get the publisher IPs?

It's a cloud instance.
Replication queue looks ok.

rakesh_h2_0-1686303507382.png

 

Avatar

Level 4

You should add cache headers for the graphql in dispatcher , otherwise you will face this on every environment.

 

For page cache , since it is a Cloud Instance, the data could be cached on either CDN on dispatcher.
Dispatcher cache will be invalidated when you publish the content based on your stat file level.

CDN cache is TTL based and will be invalidated after the TTL expires.

You will need to find out those configurations.

 

Also,  adding a query parameter to the page URL bypasses caching (if  its not specifically blocked on dispatcher level already).

 

 

Avatar

Level 4

I'm using the default cache headers values for graphQL queries.

rakesh_h2_0-1686306755775.png

 

Avatar

Community Advisor

Hello @rakesh_h2 

 

We will go step by step. 

1. Are you able to see any error while hitting the GraphQL query, given you published respective CF Model and CF References?

Let's paste the error below.

 

2. You can clear the CDN and Publisher cache using Purge key provided by Adobe for each environment and running below command

curl -X PURGE <your-url> --header( windows option) OR -H(linux/unix option) "x-aem-purge-key:<env-purge-key>"

Avatar

Level 4

Hi @iamnjain ,

1. I dont see any error. I get a notification saying 'selected query scheduled for publishing'

2. Throws an error. 
curl: option --header: requires parameter

Avatar

Community Advisor

Hello @rakesh_h2 

 

Can you please provide your complete command and where you are running it?


First publish CFs and then try to publish respective GraphQL Query and see if it's working?