Skip to content

Commit a853bc6

Browse files
committed
Merge branch 'master' of github.com:wechaty/python-wechaty
2 parents c2704f6 + c379644 commit a853bc6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/faq/common.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@
1111
* 使用latest和0.62.3版本的wechaty docker镜像来都给启动service。
1212
* 查看服务的endpoint(ip、port)是否可连通?
1313
* 查看docker镜像当中是否有connection的记录?
14+
15+
# 如何自定义插件缓存地址
16+
17+
wechaty中的插件会自动创建缓存目录,规则如下: `plugin_cache_dir = root_cache_dir / plugin_name`
18+
19+
* root_cache_dir: str = os.environ.get("CACHE_DIR", ".wechaty")
20+
* plugin_name: str = plugin.options.name
21+
22+
根据以上代码即可看出,插件的缓存地址是由两部分决定,如果想要自定义插件的缓存地址,也是可以从这两部分入手解决。

0 commit comments

Comments
 (0)