Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110720

Refresh the cache of a Web Content Field when the included article is updated


    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:



      The customer has a use case that the structure contains Web Content Field which includes a different web content article. This forms a Parent/Child web content structure. When the child article is updated (ex. article title), the parent article is not updated.

      We have provided several workarounds.
      1. Disable the "Cacheable" option on the parent article's template.
      ==> It can resolve the original issue but it causes performance issues.
      2. Use a script to clear the cache that is holding on to the template.
      3. Edit and save the parent template (no changes need to be made).
      ==> This will cause the template to be removed from the cache and reloaded. However, the customer needs to do this every time a child web content is updated. This workaround is very inconvenient.


      The issue lies with the Web Content field utilized in the structure. A different Web Content article is being updated and being cleared from the cache. However, the article that includes the updated one does not know about that update so it's template remains cached and thus displays the previous version of the article.

      The current framework does not have a way to search for Web Content Articles being included by the Web Content field so we do not know which articles should be removed from the cache.

      Could we implement a feature to refresh the cache when a web content article is included in the Web Content Field?




            • Assignee:
              support-lep@liferay.com SE Support
              laura.li Laura Li
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:


                Version Package