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

uuid-cache key mapping is not updated

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD