Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Template caching not working properly
The realted assets in the template of a web content are not updated properly on a page after updating those related assets. We noticed it takes around 1.5 hours to update it. It works fine if we make the template not cacheable or clear cache from system admin but we need to keep caching. We have modified the resource modification check settings in the freemarker engine configs and also ehcahce setting in portal-ext.properties but no difference. Can somebody please tell me how to control the cache timing of related assets in the template. This issue happens only to related assets, if the web content itself is updated it picks up the latest changes.
From my understanding the issue is that the template of a web content caches the content of a related asset for a very long time.
From my understanding the issue is that the template of a web content caches the content of a related asset for a very long time.