mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Orchard host recreates shell context based on significant events
At the moment the events related to shell settings and shell descriptor changes will cause the host to rebuild their compositions. --HG-- branch : dev
This commit is contained in:
@@ -86,7 +86,7 @@ namespace Orchard.Core.Settings.Topology {
|
||||
}
|
||||
|
||||
_eventBus.Notify(
|
||||
typeof(IShellDescriptorManager).FullName + ".UpdateShellDescriptor",
|
||||
"ShellDescriptor_Changed",
|
||||
null);
|
||||
}
|
||||
}
|
||||
|
@@ -173,9 +173,6 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
_shellSettingsManager.SaveSettings(shellSettings);
|
||||
|
||||
// MultiTenancy: This will not be needed when host listens to event bus
|
||||
_orchardHost.Reinitialize_Obsolete();
|
||||
|
||||
// redirect to the welcome page.
|
||||
return Redirect("~/");
|
||||
}
|
||||
|
Reference in New Issue
Block a user