Skip to content

Commit 276dbed

Browse files
committed
修复禁用插件后报错
1 parent f098fb5 commit 276dbed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "addons package for fastadmin",
44
"homepage": "https://github.com/karsonzhang/fastadmin-addons",
55
"license": "Apache-2.0",
6-
"version": "1.2.9",
6+
"version": "1.2.10",
77
"authors": [
88
{
99
"name": "Karson",

src/addons/Service.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ public static function refresh()
373373
throw new Exception(__("Unable to open file '%s' for writing", "addons.js"));
374374
}
375375

376-
Cache::clear("addons");
376+
Cache::rm("addons");
377+
Cache::rm("hooks");
377378

378379
$file = self::getExtraAddonsFile();
379380

0 commit comments

Comments
 (0)