FIX: fix bug related to settings cache

This commit is contained in:
Michal Kváček
2017-08-02 18:35:48 +02:00
parent 3a1e4b9c5b
commit 25d9ded124
6 changed files with 17 additions and 4 deletions
@@ -39,6 +39,9 @@ class DisableModule extends Command
$module->enabled = false;
$module->save();
\Cache::forget('enabled-modules');
\Cache::forget('enabled-modules-and-template');
$this->line('Module ' . $module->static_name . ' disabled.');
}
}
@@ -43,6 +43,9 @@ class EnableModule extends Command
$module->enabled = true;
$module->save();
\Cache::forget('enabled-modules');
\Cache::forget('enabled-modules-and-template');
$this->line('Module ' . $module->static_name . ' enabled.');
}
}