Related Asset Content Caching Issue

Vishnu S Kumar, modified 6 Years ago. Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts
In our Liferay DXP patch 70, the related asset of a web content caches indefinetly on a page until the cache is cleared from the server administration.

How to reproduce
==============
  1. Create a web content 1
  2. Create another web content 2 and add web content 1 as the related asset in web content 2
  3. Edit the template of web content 2 to display any of the field from the web content 1
  4. Add web content 2 in a web page and edit the web content 1 field that is being used in the template of web content 2
The we content 2 in the page won't update unless we clear the cache or setting the template of web content 2 "not cacheable"

We are fine with caching the template but here it takes indefinite time. We've seen that the freemarker resource check time is only "60000 ms" from liferay docs but it's not  working here.  How  do we control this caching behaviour of the related assets without clearing cache from system administration or making the templates not cacheable?


.:. If we update the web content 2 the page picks up the recent update but not it's related content