人人商城

optimize.html 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {template 'common/header'}
  2. <div class="optimize">
  3. <div class="we7-page-title">性能优化</div>
  4. <ul class="we7-page-tab"></ul>
  5. <div class="alert we7-page-alert">
  6. <p><i class="wi wi-info-sign"></i> 启用内存优化功能将会大幅度提升程序性能和服务器的负载能力,内存优化功能需要服务器系统以及PHP扩展模块支持</p>
  7. <p><i class="wi wi-info-sign"></i> 目前支持的内存优化接口有 Memcache、Redis、eAccelerator、opcache<br><p>
  8. <p><i class="wi wi-info-sign"></i> 其中eAccelerator在PHP5.5版本以下可以开启,opcache在PHP5.5版本以上可以开启<p>
  9. <p><i class="wi wi-info-sign"></i> 内存接口的主要设置位于 config.php 当中,您可以通过编辑 config.php 进行高级设置<p>
  10. </div>
  11. <div class="clearfix">
  12. <div class="panel we7-panel">
  13. <div class="panel-heading">当前内存工作状态</div>
  14. <table class="table we7-table table-hover site-list">
  15. <col width="120px"/>
  16. <col width=""/>
  17. <col width=""/>
  18. <col width=""/>
  19. <tr>
  20. <th>内存接口</th>
  21. <th>PHP 扩展环境</th>
  22. <th>Config 设置</th>
  23. <th></th>
  24. </tr>
  25. {loop $extensions $key $extension}
  26. <tr>
  27. <td><span class="label label-success">{$key}</span></td>
  28. <td>
  29. {if $extension['support']}
  30. 支持
  31. {else}
  32. 不支持
  33. {/if}
  34. </td>
  35. <td>
  36. {if $extension['status']}
  37. 已开启
  38. {else}
  39. 未开启
  40. {/if}
  41. {if $key == 'opcache' && $extensions['eAccelerator']['status'] && $extensions['opcache']['status']}
  42. <span class="label label-danger">eAccelerator 不可与 opcache同时开启</span>
  43. {/if}
  44. </td>
  45. <td>
  46. {if $extension['status'] && $extension['clear']}
  47. <a href="{$extension['clear']['url']}">{$extension['clear']['title']}</a>
  48. {/if}
  49. {$extension['extra']}
  50. </td>
  51. </tr>
  52. {/loop}
  53. </table>
  54. </div>
  55. <div class="panel we7-panel">
  56. <div class="panel-heading">数据库读写分离工作状态</div>
  57. <table class="table we7-table table-hover site-list">
  58. <tr>
  59. <td width="200">读写分离状态</td>
  60. <td class="text-left">
  61. {if $slave['slave_status']}
  62. <span class="label label-success">已开启</span>
  63. {else}
  64. <span class="label label-danger">未开启</span>
  65. {/if}
  66. </td>
  67. <tr>
  68. <td>session存储方式</td>
  69. <td class="text-left">
  70. {if $extensions['memcache']['status'] && $setting['memcache']['session'] == 1}
  71. <span class="label label-danger">memcache</span>
  72. {else if $extensions['redis']['status'] && $setting['redis']['session'] == 1}
  73. <span class="label label-success">redis</span>
  74. {else}
  75. <span class="label label-success">mysql</span>
  76. {/if}
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>禁用从数据库的数据表</td>
  81. <td class="text-left">
  82. {if !empty($slave['common']['slave_except_table'])}
  83. {loop $slave['common']['slave_except_table'] $row}
  84. {$row}
  85. {/loop}
  86. {else}
  87. 暂无
  88. {/if}
  89. </td>
  90. </tr>
  91. </table>
  92. </div>
  93. <div class="panel we7-panel">
  94. <div class="panel-heading">远程访问代理设置</div>
  95. <table class="table we7-table table-hover site-list">
  96. <tr>
  97. <td width="200">状态</td>
  98. <td class="text-left">
  99. {if !empty($setting['proxy']['host'])}
  100. <span class="label label-success">已开启</span>
  101. {else}
  102. <span class="label label-danger">未开启</span>
  103. {/if}
  104. </td>
  105. </tr>
  106. {if !empty($setting['proxy']['host'])}
  107. <tr>
  108. <td>远程地址</td>
  109. <td class="text-left">{$setting['proxy']['host']} 因安全原因,密码不予显示</td>
  110. </tr>
  111. {/if}
  112. </table>
  113. </div>
  114. <br />
  115. </div>
  116. </div>
  117. {template 'common/footer'}