Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信第三方平台缓存位置,是否可以在配置文件中自定义 #648

Closed
rooyzhang opened this issue Apr 12, 2017 · 0 comments
Closed

Comments

@rooyzhang
Copy link

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:3.2

问题及现象

easywechat缓存使用的是文件缓存,默认在临时文件夹下。

第三方平台授权的authorizer_refresh_token等重要信息,会和系统创建的其他临时文件在一起,可否考虑允许开发者在配置文件中自定义存储目录。

EasyWeChat\OpenPlatform\Traits\Caches
public function getCache()
{
return $this->cache ?: $this->cache = new FilesystemCache(sys_get_temp_dir());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant