File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,7 @@ func updateDynamicModulesStatus() {
112
112
moduleName = strings .TrimPrefix (moduleName , "ngx_" )
113
113
moduleName = strings .TrimSuffix (moduleName , "_module" )
114
114
loadedDynamicModules [moduleName ] = true
115
- }
116
- }
117
-
118
- // Update the status for each module in the cache
119
- for key := range modulesCache .Keys () {
120
- // If the module is already marked as dynamic, check if it's actually loaded
121
- if loadedDynamicModules [key ] {
122
- module , ok := modulesCache .Get (key )
115
+ module , ok := modulesCache .Get (moduleName )
123
116
if ok {
124
117
module .Loaded = true
125
118
}
@@ -190,7 +183,7 @@ func GetModules() *orderedmap.OrderedMap[string, *Module] {
190
183
Name : module ,
191
184
Params : params ,
192
185
Dynamic : isDynamic ,
193
- Loaded : ! isDynamic || isDynamic , // Static modules are always loaded, dynamic need to be checked
186
+ Loaded : ! isDynamic , // Static modules are always loaded
194
187
})
195
188
}
196
189
}
You can’t perform that action at this time.
0 commit comments