Browse Source

Cakephp fix (#2430)

* Cakephp fix

* add comment for redis config removal
Nate 8 years ago
parent
commit
4bd0f5c50e
1 changed files with 19 additions and 16 deletions
  1. 19 16
      frameworks/PHP/cakephp/app/Config/core.php

+ 19 - 16
frameworks/PHP/cakephp/app/Config/core.php

@@ -259,28 +259,31 @@ if (Configure::read('debug') >= 1) {
 // Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts.
 $prefix = 'myapp_';
 
+// NOTE: There is currently no implementation of redis so commenting out this configuration for now. This
+// *may* have also been in violation of the rules of some of the database tests.
+
 /**
  * Configure the cache used for general framework caching.  Path information,
  * object listings, and translation cache files are stored with this configuration.
  */
-Cache::config('_cake_core_', array(
-	'engine' => $engine,
-	'server' => 'REDISSERVER',
-	'prefix' => $prefix . 'cake_core_',
-	'path' => CACHE . 'persistent' . DS,
-	'serialize' => ($engine === 'File'),
-	'duration' => $duration
-));
+//Cache::config('_cake_core_', array(
+//	'engine' => $engine,
+//	'server' => 'REDISSERVER',
+//	'prefix' => $prefix . 'cake_core_',
+//	'path' => CACHE . 'persistent' . DS,
+//	'serialize' => ($engine === 'File'),
+//	'duration' => $duration
+//));
 
 /**
  * Configure the cache for model and datasource caches.  This cache configuration
  * is used to store schema descriptions, and table listings in connections.
  */
-Cache::config('_cake_model_', array(
-	'engine' => $engine,
-	'server' => 'REDISSERVER',
-	'prefix' => $prefix . 'cake_model_',
-	'path' => CACHE . 'models' . DS,
-	'serialize' => ($engine === 'File'),
-	'duration' => $duration
-));
+//Cache::config('_cake_model_', array(
+//	'engine' => $engine,
+//	'server' => 'REDISSERVER',
+//	'prefix' => $prefix . 'cake_model_',
+//	'path' => CACHE . 'models' . DS,
+//	'serialize' => ($engine === 'File'),
+//	'duration' => $duration
+//));