Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15127

Cacheable xPages don't take into consideration shared uncacheable components

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 14.7.8
    • 14.7.13, 15.2.0
    • None
    • Flagged
    • Quasar
    • Quasar Sprint 300
    • Small (1-2)

    Description

      In a normal cacheable content page, if you add a uncacheable component to a shared container (header, footer), the page won't be cached.

      If you do the same with a cacheable xPage, the uncacheable component will be cached. 

      This is not intended behavior, according to https://xmdocumentation.bloomreach.com/library/concepts/request-handling/hst-page-caching.html

      A composite tree of HST components is only cacheable if every HST component in the composite structure of components that will be rendered during the request is cacheable

      Reproduction
      Creating an x-page, making the mount cacheable and adding a uncacheable component to the shared header and footer container

      Adding the same component to a normal content page works perfectly

      See myproject14.7.7-cache.zip

      /hst:myproject/hst:hosts/dev-localhost/localhost/hst:root/hst:cacheable=true
      /hst:myproject/hst:configurations/myproject/hst:workspace/hst:containers/base/footer/slowComponent/hst:cacheable=false
      

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            faraujo Francisco Araujo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: