Maintain plugin state

This commit is contained in:
xiaomlove
2024-11-17 02:44:41 +08:00
parent 631f703055
commit c2e70c9569
5 changed files with 60 additions and 2 deletions
@@ -66,6 +66,8 @@ class TorrentStateResource extends Resource
Tables\Actions\EditAction::make()->after(function () {
do_log("cache_del: global_promotion_state");
NexusDB::cache_del(Setting::TORRENT_GLOBAL_STATE_CACHE_KEY);
do_log("publish_model_event: global_promotion_state_updated");
publish_model_event("global_promotion_state_updated", 0);
}),
// Tables\Actions\DeleteAction::make(),
])