Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3178

Several modules have a dependency from the cache module also when this should not be required

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.3.1
    • cache
    • None

      Opening this issue to link together all the specific issues already traced in other modules.

      Several modules have now a non-optional dependency on the cache module and can't work if the cache module is not installed.
      This is just because they need to register their own workspace for flushing (so it's just for a configuration required by the cache module), but since they use a task which is inside the cache module for this, the dependency becomes required.

      At the moment this have been fixed by catching the exception thrown when trying to instantiate the task, since we couldn't find a better solution. Considered options are:

      • move the cache flushing task to core, but it's undesidered since all the modules will now only depend on the last magnolia core containing such task (4.3.2?)
      • copy the cache flush task to each single module (pretty bad for the duplication of code)
      • use reflection to instantiate the task? Not better than catching the exception

        Acceptance criteria

              gjoseph Magnolia International
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD