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

默认文件缓存的路径是否可以简单修改? #1023

Closed
birdol opened this issue Nov 13, 2017 · 3 comments
Closed

默认文件缓存的路径是否可以简单修改? #1023

birdol opened this issue Nov 13, 2017 · 3 comments

Comments

@birdol
Copy link

birdol commented Nov 13, 2017

我用的环境

PHP 版本:7.1
overtrue/wechat 版本:4.0 beta
是否使用了框架?框架名称:原生php

问题及现象

有些用户的主机对/tmp/路径没有权限,或者不在open basedir的设置范围内,导致文件缓存玩不下去,在不用其他自定义缓存的条件下,能够通过config直接修改缓存路径吗?

@overtrue
Copy link
Collaborator

默认缓存是取的 php 函数 sys_get_temp_dir() 的路径,如果这个路径不存在,那你的 php 也无法正常工作才对

@birdol
Copy link
Author

birdol commented Nov 13, 2017

自己写个filecache替换了,有些主机真的是奇葩。。。

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

2 participants