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

Make it possible to share default configuration between multiple caches

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • None
    • None

      Hi

      Currently, info.magnolia.module.cache.filter.CacheFilter#onCacheModuleStart uses cacheConfigurationName to read the cache configuration and to create the cache.

      This means that you force the usage of a different cache per cache filter.

      If you have to setup multi site caching (https://documentation.magnolia-cms.com/display/DOCS/Advanced+Cache+module#AdvancedCachemodule-Multisitecacheconfiguration), you will end up with N cache filters and N cache configurations.

      Maybe a second property cacheName on the filter will do the magic. And you can always fallback to cacheConfigurationName if cacheName is not set.

      Cheers,
      Stefan

        Acceptance criteria

              rkovarik Roman Kovařík
              sbaur Stefan Baur
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD