mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
feat(housekeeping): add clear_cache option to flush redis or files cache
This commit is contained in:
parent
42d92d0c8d
commit
99bfac0b42
4 changed files with 9 additions and 0 deletions
|
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue