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

"The defaultPageCache property is not set for the cache CacheFilter, falling back to defaultPageCache."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 5.4.1
    • 5.4
    • None
    • None
    • Sprint 3 (Kromeriz)

      On a Magnolia 5.4 installation with a cleanly bootstrapped cache module, we get the following log message on startup:

      WARN   info.magnolia.module.cache.filter.CacheFilter 20.07.2015 14:32:42 -- The defaultPageCache property is not set for the cache CacheFilter, falling back to defaultPageCache.
      

      This message seems to be logged by CacheFilter:119. The code in oCacheModuleStart() checks if defaultContentCachingConfigurationName is null, and apparently it is, but it seems the way to set this variable is to make sure setDefaultContentCachingConfigurationName() gets called. The obvious way to make sure that happens is via Node2Bean, which would mean having a property called defaultContentCachingConfigurationName. This property indeed doesn't exist, but the log message suggests that it's a property called defaultPageCache that's missing, which is actually not missing.

      My theory is that CacheFilter.DEFAULT_CONTENT_CACHING_CONFIGURATION_NAME is used for two different things:

      • The name of the property that holds the name of the default content caching configuration
      • The name of the default content caching configuration

      It probably shouldn't be used for at least one of those two. The existence of AbstractCacheModule.DEFAULT_CACHE_CONFIG suggests that the value of CacheFilter.DEFAULT_CONTENT_CACHING_CONFIGURATION should actually be "defaultContentCachingConfigurationName" instead of "defaultPageCache".

        Acceptance criteria

              efochr Evzen Fochr
              breun Nils Breunese
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2.75h
                    2.75h