diff --git a/composer.json b/composer.json index 9c9d2be..a664d57 100644 --- a/composer.json +++ b/composer.json @@ -55,7 +55,8 @@ "scripts": { "post-autoload-dump": [ "@php think service:discover", - "@php think vendor:publish" + "@php think vendor:publish", + "@php think catch-service:discover" ] } } diff --git a/extend/catcher/facade/Trie.php b/extend/catcher/facade/Trie.php index b3d9bbc..22f67ba 100644 --- a/extend/catcher/facade/Trie.php +++ b/extend/catcher/facade/Trie.php @@ -1 +1,18 @@ + * @copyright By CatchAdmin + * @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt + */ \ No newline at end of file diff --git a/extend/catcher/library/Trie.php b/extend/catcher/library/Trie.php index 806bd16..cad03f0 100644 --- a/extend/catcher/library/Trie.php +++ b/extend/catcher/library/Trie.php @@ -144,6 +144,6 @@ class Trie */ public function cached() { - Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree); + return Cache::store('redis')->set(CatchCacheKeys::TRIE_TREE, $this->tree); } } \ No newline at end of file