dever 6 년 전
부모
커밋
e883b5db58
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      config/env/localhost/default.php

+ 5 - 2
config/env/localhost/default.php

@@ -75,7 +75,7 @@ $config['cache'] = array
         'cron' => 0,
         'cron' => 0,
         'combine' => 0,
         'combine' => 0,
         'service_home' => 0,
         'service_home' => 0,
-        //'service_list_code' => 0,
+        'service_my_code' => 0,
         'service_buy.pay' => 0,
         'service_buy.pay' => 0,
         'vip_' => 0,
         'vip_' => 0,
     ),
     ),
@@ -126,9 +126,12 @@ $config['cache'] = array
     ),
     ),
 );
 );
 
 
-if (isset($dc['redis'])) {
+if (isset($dc['redis']) && $config['cache']['type'] == 'redis') { 
     $config['cache']['store'] = $dc['redis'];
     $config['cache']['store'] = $dc['redis'];
 }
 }
+if (isset($dc['memcache'])  && $config['cache']['type'] == 'memcache') {
+    $config['cache']['store'] = $dc['memcache'];
+}
 
 
 $config['debug'] = array
 $config['debug'] = array
 (
 (