Module reload resources

I am currently working on an Ignition module thats will be sent to production. During development, I noticed that restarting the gateway service was the only way (I found) to reload a module’s resources and replace the labels in the configuration pages.

I found this topic that had the same issue I am having, but his solution only works in development and seems outdated because his solution no longer exists :

this.getApplication().getMarkupSettings().getMarkupCache().clear();

Note that the module will be heading to production and restarting the gateway for an eventual module update is not an option.

This persistent flaw is one of the reasons v8.3 doesn't allow module hot-loading/reloading at all.

There is no fix. There will not be one. It will be moot in v8.3, as all module upgrades will require gateway restart.

1 Like

Is there an alternative to the line of code above for the time being in 8.1?

Not that I know of. Bundles related to internal DB records are stuck on first load. Others may be, too.

Plan on restarting the gateway if you change the resources.

1 Like