Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Time lag between publishing an asset and being available in Query results?

Avatar

Level 5

Can we programatically get status of an asset if its published or not? After we publish the Content Fragments they won't show up in GQL queries of published endpoints. What is the delay of results to get reflected in GQL query results if there is any? I have unpublished an asset right away (using replication API) programatically and even after 200 status it just doesn't seem to disappear from GQL persisted query results.

 

I am using publish endpoint to check the results (instead of author).

1 Accepted Solution

Avatar

Correct answer by
Employee

@spidey1405 If you are using Persisted Queries, it might not reflect instantly, as they have default TTL. Please check below URL to validate the default caching:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...

 

View solution in original post

2 Replies

Avatar

Community Advisor

If the assets are not available in publish you must get 404 status.
This will be your check against publish endpoints

Avatar

Correct answer by
Employee

@spidey1405 If you are using Persisted Queries, it might not reflect instantly, as they have default TTL. Please check below URL to validate the default caching:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...