mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
fix(plugins): delete relevant cache when submitting settings
This commit is contained in:
parent
85704bfbe0
commit
00bd4c02ee
4 changed files with 24 additions and 5 deletions
|
|
@ -80,7 +80,7 @@ class PluginController extends BaseController
|
|||
]);
|
||||
}
|
||||
|
||||
public function settings(
|
||||
public function settingsView(
|
||||
string $vendor,
|
||||
string $package,
|
||||
string $podcastId = null,
|
||||
|
|
@ -223,6 +223,9 @@ class PluginController extends BaseController
|
|||
$this->plugins->setOption($plugin, $field->key, $this->castFieldValue($field, $fieldValue), $context);
|
||||
}
|
||||
|
||||
// clear cache after setting options
|
||||
$plugin->clearCache();
|
||||
|
||||
return redirect()->back()
|
||||
->with('message', lang('Plugins.messages.saveSettingsSuccess', [
|
||||
'pluginTitle' => $plugin->getTitle(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue