Allener
- Allener 回复了 johnny1991 的回答
这个要看你的cache是怎么配置的,查看config,比如存在redis里面
// redis cache 'cache' => [ 'class' => 'yii\redis\Cache', 'redis' => 'redis' ], // db cache 'dbCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable'=>'dts_cache', ], // file cache 'fileCache' => [ 'class' => 'yii\caching\FileCache', ],
- Allener 回复了 johnny1991 的回答
这个要看你的cache是怎么配置的,查看config,比如存在redis里面
// redis cache 'cache' => [ 'class' => 'yii\redis\Cache', 'redis' => 'redis' ], // db cache 'dbCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable'=>'dts_cache', ], // file cache 'fileCache' => [ 'class' => 'yii\caching\FileCache', ],
@johnny1991 系统只有一个配置文件,我使用缓存也是用的这个cache组件。
- Allener 2017-10-30 已签到连续签到1天,获得了5个金钱
- Allener 回复了 johnny1991 的回答
这个要看你的cache是怎么配置的,查看config,比如存在redis里面
// redis cache 'cache' => [ 'class' => 'yii\redis\Cache', 'redis' => 'redis' ], // db cache 'dbCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable'=>'dts_cache', ], // file cache 'fileCache' => [ 'class' => 'yii\caching\FileCache', ],
现在的情况是,系统没有创建这个cache目录,而我使用了框架自带的缓存,现在我在runtime下手动创建了cache这个文件夹,我又重新生成一遍缓存,但是这个cache目录下还是空的,那现在的问题就是这缓存的数据存在了哪里 ?
- Allener 2017-10-26 已签到连续签到4天,获得了20个金钱
- Allener 2017-10-25 已签到连续签到3天,获得了15个金钱
- Allener 回复了 johnny1991 的回答
这个要看你的cache是怎么配置的,查看config,比如存在redis里面
// redis cache 'cache' => [ 'class' => 'yii\redis\Cache', 'redis' => 'redis' ], // db cache 'dbCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable'=>'dts_cache', ], // file cache 'fileCache' => [ 'class' => 'yii\caching\FileCache', ],
@johnny1991 cache这个文件夹没有存在 我查询了整个YII下的目录。
- Allener 回复了 johnny1991 的回答
这个要看你的cache是怎么配置的,查看config,比如存在redis里面
// redis cache 'cache' => [ 'class' => 'yii\redis\Cache', 'redis' => 'redis' ], // db cache 'dbCache' => [ 'class' => 'yii\caching\DbCache', 'cacheTable'=>'dts_cache', ], // file cache 'fileCache' => [ 'class' => 'yii\caching\FileCache', ],
就是我的runtime下只有两个文件夹debug和logs,没有cache额
- Allener 2017-10-24 已签到连续签到2天,获得了10个金钱