Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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 Advisor

@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



Arun Patidar

Avatar

Correct answer by
Employee Advisor

@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...