feat(housekeeping): add clear_cache option to flush redis or files cache

This commit is contained in:
Yassine Doghri 2022-01-29 16:42:34 +00:00
commit 99bfac0b42
4 changed files with 9 additions and 0 deletions

View file

@ -283,6 +283,10 @@ class SettingsController extends BaseController
}
}
if ($this->request->getPost('clear_cache') === 'yes') {
cache()->clean();
}
return redirect('settings-general')->with('message', lang('Settings.housekeeping.runSuccess'));
}