Closed Vinai closed 5 years ago
Description of the desired behavior:
If there is a dump file:
var/cache-clean-config.json
for changes to pick up new modulesIf there is no dump file:
app/etc/config.php
to pick up new modulesSwitch between the two behaviors on the fly without requiring a restart so it "just works".
Implementation options:
app/etc/config.php
and var/cache-clean-config.json
for changes and only distinguish how to react depending on the presence of the cache-clean-config.json
file.Keeping simplicity in mind, option 1 seems more robust.
Implemented and released in 0.0.42.
When the file
var/cache-clean-config.json
is present, the watcher reads the available modules and themes from it. When a new module is added and the dump file is recreated, then the watcher should pick up the change without having to be restarted.