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

refreshOnNoCacheRequests does not work with memcached backend

XMLWordPrintable

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

      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

        Acceptance criteria

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

                Created:
                Updated:

                  Bug DoR
                  Task DoD