无限星辰工作室-客户无限互联网动力之源

标题: modoer 3.6.5 最佳性能设置 [打印本页]

作者: crx349    时间: 2018-4-14 22:46
标题: modoer 3.6.5 最佳性能设置
  1. // session实现方式
  2. $_G['session_type'] = 'redis'; //db,redis
  3. // 内存缓存工具使用
  4. $_G['cache_type'] = 'memcache';//file,redis,memcache,apc;

  5. $_G['memcache']['enabled'] = true;
  6. $_G['memcache']['host'] = '127.0.0.1';
  7. $_G['memcache']['port'] = 11211;
  8. $_G['memcache']['pconnect'] = true;
  9. $_G['memcache']['timeout'] = 1;

  10. $_G['redis']['enabled'] = true;
  11. $_G['redis']['host'] = '127.0.0.1';
  12. $_G['redis']['port'] = 6379;
  13. $_G['redis']['pconnect'] = true;
  14. $_G['redis']['timeout'] = '0';
复制代码







欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://www.xmspace.net/) Powered by Discuz! X3.4