dever 6 tahun lalu
induk
melakukan
e883b5db58
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      config/env/localhost/default.php

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

@@ -75,7 +75,7 @@ $config['cache'] = array
         'cron' => 0,
         'combine' => 0,
         'service_home' => 0,
-        //'service_list_code' => 0,
+        'service_my_code' => 0,
         'service_buy.pay' => 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'];
 }
+if (isset($dc['memcache'])  && $config['cache']['type'] == 'memcache') {
+    $config['cache']['store'] = $dc['memcache'];
+}
 
 $config['debug'] = array
 (