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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: 4.3.1
    • Fix Version/s: None
    • Component/s: cache
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: