vendor\overtrue\wechat\src\Foundation\Application.php 

registerBase 方法 在初始化属性时

        $this['cache'] = function () {
//            return new FilesystemCache(sys_get_temp_dir());  // win 下获取的是 c:\window 没有权限 位置太敏感 加权限什么的就算了吧
            return new FilesystemCache(\Yii::$app->cache->cachePath); // 用的是YII2 直接把第三方包的缓存放到站点的缓存文件夹
        };

 

 posted on 2016-08-03 11:54  changs  阅读(1766)  评论(0编辑  收藏  举报