-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
关于 Cache #115
Comments
这样还不行, 无法保证 缓存的accesstoken 是一致, 需要兼容性更好的解决办法 |
你在干嘛?phpunit还在生产环境玩了?而且phpunit为啥还有文件系统了?你确定你真的会单元测试? |
phpunit 不应该在生产环境跑么, 那用什么方法可以确认 本地跑的代码 在服务器上也正常呢? 通常程序员都喜欢对着线上的bug说"在我本地是好的呢".. 所以我一般也会在 生产环境跑一遍, 确保没有问题 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...
/**
* 获取缓存文件名
*
* @param string $key
*
* @return string
*/
protected function getCacheFile($key)
{
// 如果不区分的话, 命令行执行的时候 缓存文件的拥有者会不是 apache
// return sys_get_temp_dir().DIRECTORY_SEPARATOR.md5($this->prefix.$key);
return sys_get_temp_dir().DIRECTORY_SEPARATOR.'by_'.php_sapi_name().'_'.md5($this->prefix.$key);
}
...
The text was updated successfully, but these errors were encountered: