Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5676

uuid-cache key mapping is not updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.5.17
    • 4.5.9
    • cache
    • None

      Cache key - uuid mapping is not kept in sync anymore. Actually it's not created at all. The UUID-cache-key cache is always empty. Due to this problem it's not possible to flush pages w/ comments from the cache in timely manner.

      The issue is caused by call to MgnlContext.getAggregationState().getCurrentContent() in {{ info.magnolia.module.cache.executor.Store.processCacheRequest(HttpServletRequest, HttpServletResponse, FilterChain, Cache, CachePolicyResult)}} which seems to always return null now, while previously it returned the page content.

      Quick solution is to change this call to invoke getMainContent() instead, the ultimate fix for the problem is to remove usage of deprecated API all together.

        Acceptance criteria

              rkovarik Roman Kovařík
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD