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

cq:lastReplicated property is not updating in publish instance

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

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. 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 3

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. 

Avatar

Community Advisor

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

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

Avatar

Community Advisor

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.