Uploaded image for project: 'SiteMesh'
  1. SiteMesh
  2. MSITEMESH-59

cache does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.1
    • None
    • None

      Steps to reproduce

      1. demopublic --> set cache to false (authenticated) - so to test caching in same browser session
        https://demopublic.magnolia-cms.com/.magnolia/admincentral#app:configuration:browser;/modules/cache/config/contentCaching/defaultPageCache/cachePolicy/shouldBypassVoters/deny/authenticated@enabled:treeview:
      2. set dynamic fragment (bypass cache config for tourCarousel component
        https://demopublic.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/tours/templates/components/tourCarousel.yaml:edit
        fragmentDefinition:
          class: info.magnolia.module.advancedcache.rendering.DynamicFragmentDefinition
          ttl: 0
          mechanism: sitemesh
          dynamic: true 
        
      1. set date / time content for testing cache
        https://demopublic.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/tours/templates/components/tourCarousel.ftl:edit
        On top of ftl:
        [#assign now = .now /]
        [#assign time = now?time /]
            <h2>${time}</h2> 
        
      1. Initially node https://demopublic.magnolia-cms.com/.magnolia/admincentral#app:configuration:browser;/server/rendering/engine/listeners/personalizedComponent:treeview: is enabled - after some refreshes of homepage (https://demopublic.magnolia-cms.com/) you will see that date content is cached (which should not)
      2. Create property enabled: false – module will be restarted and after some new refreshes you will notice that date content is now bypassed (expected behavior)

      .. Logs, screenshots, gifs...

      Expected results

      Content should not get cached at step 4 and the time displays the current time

      Actual results

      Content gets cached at step 4 and the time displays the old time

      Workaround

      Development notes

        Acceptance criteria

              mdivilek Milan Divilek
              smarino Sergio Marino
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1d 2.5h
                    1d 2.5h