AEM Time lag between publishing an asset and being available in Query results? | Community
Skip to main content
Level 4
November 28, 2022
Solved

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

  • November 28, 2022
  • 2 replies
  • 887 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by krati_garg

@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-api/persisted-queries.html?lang=en#caching-persisted-queries

 

2 replies

arunpatidar
Community Advisor
Community Advisor
November 28, 2022

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

Arun Patidar
krati_garg
Adobe Employee
krati_gargAdobe EmployeeAccepted solution
Adobe Employee
November 28, 2022

@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-api/persisted-queries.html?lang=en#caching-persisted-queries