| @@ -136,7 +136,10 @@ | ||
| 136 | 136 | $settings['mcp'] = $mcp; |
| 137 | 137 | |
| 138 | 138 | ModuleSettings::saveSettings($settings); |
| 139 | 139 | |
| 140 | + // Refresh the request-level cache so isEnabled() reports the new state. | |
| 141 | + ModuleSettings::getAllSettings(false); | |
| 142 | + | |
| 140 | 143 | return (bool) $enabled; |
| 141 | 144 | } |
| 142 | 145 | } |