Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-212

refreshOnNoCacheRequests does not work with memcached backend

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 5.6.2
    • memcached

    Description

      Looking at the code, there is an option to refresh the cached entry by passing no-cache header. But it seems when used with memcached backend, this has no effect.

       

      The underlying issue is, memcached library is calling .add() method, which will only add data if the key does not exist already. Instead it should use .set(), which supports updating the cached data if key already exists.

      The method is called here: https://git.magnolia-cms.com/projects/MODULES/repos/cache/browse/magnolia-cache-memcached/src/main/java/info/magnolia/cache/memcached/spy/MemcachedWrapper.java#191

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              nverma Neeraj Verma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD