修改一下文件\ThinkPHP\Conf\convention.php
'DATA_CACHE_TYPE' => 'File', // 数据缓存类型,支持:File|Db|Apc|Memcache|Shmop|Sqlite|Xcache|Apachenote|Eaccelerator
将File改为Memcache
在配置文件配置
'cache'?=>?[
//?驱动方式
'type'?=>?'memcache',
//?缓存保存目录
'path'?=>?cache_path,
//?缓存前缀
'prefix'?=>?'',
//?缓存有效期?0表示永久缓存
'expire'?=>?0,
],
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....