{extend name="../../admin/view/public/admin"} {block name='style'} {/block} {block name='content'}

启用内存优化功能将会大幅度提升程序性能和服务器的负载能力,内存优化功能需要服务器系统以及PHP扩展模块支持

目前支持的内存优化接口有 Memcache、Redis、opcache

内存接口的主要设置位于 config/cache.php 当中,您可以通过编辑 cache.php 进行高级设置

缓存工作状态
扩展名称 PHP 扩展环境
Redis {if $redis_support}{else}{/if}
memcache {if $memcache_support}{else}{/if}
opcache {if $opcache_support}{else}{/if}
数据库状态
{if $database['connections']['mysql']['rw_separate']} {/if}
服务名称 服务状态
数据库类型 {$database['default']}
部署方式 {if $database['connections']['mysql']['deploy'] == 0}集中式(单一服务器){elseif $database['connections']['mysql']['deploy'] == 1}分布式(主从服务器){/if}
读写分离 {if $database['connections']['mysql']['rw_separate']}开启{else}关闭{/if}
主服务器数量 {$database['connections']['mysql']['master_num']}
从服务器序号 {$database['connections']['mysql']['slave_no']}
断线重连 {if $database['connections']['mysql']['break_reconnect']}启用{else}关闭{/if}
{/block}