微擎开发之缓存相关配置
微擎系统支持三种缓存类型(mysql、memcache、file),默认 mysql 缓存。
涉及如下文件
w7/data/config.php
缓存配置如下
$config['setting']['cache'] = 'mysql'; //mysql, memcache, file
特别注意: 如果启用 memcache 缓存,则需要在本 config.php 文件末尾新增 memcache 配置代码,指定服务器及端口配置。
设置 mysql 缓存的话,可参考一下相关数据表:core_cache