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

Starting site-aware advanced cache policies results into injection error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.5
    • 5.4.4
    • cache core
    • Yes
    • Kromeriz 45
    • 2

    Description

      Since the cache has no dependency to site/multisite modules.

      2016-05-10 11:07:33,421 WARN  magnolia.module.cache.AbstractListeningFlushPolicy: Failed to register cache flushing observation for workspace 'dam' (cache named defaultPageCache): 
      com.google.inject.ProvisionException: Guice provision errors:
      
      1) Module instance for module [site] not available, most likely because the module has not yet been started. Inject a Provider<> instead to get access to the module instance when it's available.
        at info.magnolia.objectfactory.guice.GuiceComponentConfigurationModule.bindProvider(GuiceComponentConfigurationModule.java:190)
        while locating info.magnolia.module.site.SiteModule
      

      Solution:

      • A] start caches later on modules started event
      • B] add optional dependency to these modules but we have to get rid off these cyclic dependencies:
        • for the site dependency: cache->site->observation->mail->ui-admincentral->cache
        • for the multisite dependency: unknown

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsimak Jaroslav Simak
                rkovarik Roman Kovařík
                Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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