Modify ↓
Ticket #317 (closed defect: fixed)
Module does not reload on module mach-ii.xml file change when MACHII_CONFIG_MODE = 0
| Reported by: | phil.thomas@… | Owned by: | peterfarrell |
|---|---|---|---|
| Priority: | major | Milestone: | Mach-II 1.8.0 alpha |
| Component: | framework - core | Version: | 1.5.0 - Framework |
| Keywords: | module modules reload config mode dynamic | Cc: | |
| Blocked By: | Blocking: |
Description
I haven't been able to get dynamic module reloading to work when the module mach-ii.xml files changes when Mach-II is running in Dynamic Reload Mode.
I've been running with the patch pasted in below and the reloads work as expected now.
Running Mach-II Version 1.8.0.1571 built 2009-05-26 21:07:22
Index: MachII/1.8.0.alpha/framework/AppLoader.cfc
===================================================================
--- MachII/1.8.0.alpha/framework/AppLoader.cfc (revision )
+++ MachII/1.8.0.alpha/framework/AppLoader.cfc (working copy)
@@ -153,7 +153,7 @@
<cfif NOT IsObject(getAppManager().getParent())>
<cfloop collection="#modules#" item="module">
<cfif modules[module].shouldReloadConfig()>
- <cfset modules[module].shouldReloadConfig() />
+ <cfset modules[module].reloadModuleConfig(arguments.validateXml) />
</cfif>
</cfloop>
</cfif>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

@Phil, thanks for the defect report and related patch. I have confirmed the behavior you describe. Official fix to be committed is forth coming.
For the sake of history and potential future questions. This appears to affect Mach-II 1.5.0 and 1.6 series (1.6.0 and 1.6.1) according to version control. It appears that a lot of people have relied on the dashboard application since the introduction of modules about 18 months ago.