From 8b76b83953d5f63e007228293dfcecf19c0c9f2e Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 22 Jun 2025 12:01:37 +0700 Subject: [PATCH] sushiShouldCache false --- app/Models/PluginStore.php | 6 ++++++ include/constants.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Models/PluginStore.php b/app/Models/PluginStore.php index b8585eae..24d5029e 100644 --- a/app/Models/PluginStore.php +++ b/app/Models/PluginStore.php @@ -32,12 +32,18 @@ class PluginStore extends Model { $list = self::listAll(true); $enabled = Plugin::listEnabled(); +// dd($list, $enabled); foreach ($list as $key => $row) { $list[$key]['installed_version'] = $enabled[$row['plugin_id']] ?? ''; } return $list; } + protected function sushiShouldCache() + { + return false; + } + public function getBlogPostUrl(): string { return sprintf(self::BLOG_POST_URL, $this->post_id); diff --git a/include/constants.php b/include/constants.php index 8535a5f4..e4376df8 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@