fix(plugins): delete relevant cache when submitting settings

This commit is contained in:
Yassine Doghri 2024-12-18 17:50:33 +00:00
commit 00bd4c02ee
4 changed files with 24 additions and 5 deletions

View file

@ -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(),