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

Make it possible to share default configuration between multiple caches

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: