cq:lastReplicated property is not updating in publish instance | Community
Skip to main content
April 20, 2022
Solved

cq:lastReplicated property is not updating in publish instance

  • April 20, 2022
  • 3 replies
  • 2226 views

Hi All,

 

When we publish the page, the cq:lastReplicated property is not updated in the published instance.

While the cq:lastModified property is updated, the cq:lastReplicated property is not.

What would be the issue here, and can you help me if anyone comes across this issue?

Is it possible to show the cq:lastReplicated node data in a published instance?

 

Thanks in advance.

Kaibalya

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 raushan123

hi publish environment does not have cq:lastReplicated property. The equivalent property on a page that you would get to see on publish instance is, jcr:created. This property gets updated every time a page is published. So, technically jcr:created property's value in publish instance and cq:lastReplicated value in author instance will almost always identical. 

3 replies

raushan123Accepted solution
Level 4
April 20, 2022

hi publish environment does not have cq:lastReplicated property. The equivalent property on a page that you would get to see on publish instance is, jcr:created. This property gets updated every time a page is published. So, technically jcr:created property's value in publish instance and cq:lastReplicated value in author instance will almost always identical. 

Bhuwan_B
Community Advisor
Community Advisor
April 20, 2022

@kaibalya_123 cq:lastReplicated property is not carried over to publish by design. In order to carry it over, disable the below component in the author instance:

com.day.cq.replication.impl.ReplicationPropertiesFilterFactory

Referencehttps://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/cq-lastreplicated-not-found-in-aem-6-2-publisher-page/td-p/288194

Note: On Publisher this property is redundant, cq:lastModified on publisher captures the same info as cq:lastReplicated.

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 20, 2022

When a page is published from Author -> Publisher, the publisher see's the resource as a new item added. You should be okay to use the currentPage.jcr:created as this date can represent the last replicated date.

 

But however, just as a experiment for yourself, when looking at the Author, the jcr:created is the actual creation date of when the page was created (this date will neverchange), and you can actually find the cq:lastReplicated, as this will be the actual lastReplication date.