diff --git a/cake/console/libs/templates/skel/config/core.php b/cake/console/libs/templates/skel/config/core.php index 5c6cc4dbd..336a1d8ea 100644 --- a/cake/console/libs/templates/skel/config/core.php +++ b/cake/console/libs/templates/skel/config/core.php @@ -3,7 +3,7 @@ /** * This is core configuration file. * - * Use it to configure core behaviour ofCake. + * Use it to configure core behavior of Cake. * * PHP versions 4 and 5 * @@ -35,11 +35,9 @@ * /app/.htaccess * /app/webroot/.htaccess * - * And uncomment the define below: + * And uncomment the baseUrl below: */ - -// define ('BASE_URL', env('SCRIPT_NAME')); - + //Configure::write('baseUrl', env('SCRIPT_NAME')); /** * CakePHP Debug Level: * @@ -63,7 +61,7 @@ * controller-wide by setting var $cacheAction = true, or in each action * using $this->cacheAction = true. */ - define('CACHE_CHECK', false); + Configure::write('Cache.check', true); /** * Defines the default error type when using the log() function. Used for * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG. @@ -156,50 +154,52 @@ define('ACL_CLASSNAME', 'DB_ACL'); define('ACL_DATABASE', 'default'); /** - * How long to cache data if not defined - * 3600 = 1 hour - */ - define('CACHE_DEFAULT_DURATION', 3600); -/** - * How often to do garbage collection - * about once in every hundred page loads - */ - define('CACHE_GC_PROBABILITY', 100); -/** - * Use the file storage engine with default parameters. - * Cached data is kept in app/tmp/cache/ + * Cache Engine Configuration * - * File storage - * $cakeCache = array('File', [optional]array( - * 'dir' => '/tmp/', // use system tmp directory - remember to use absolute path - * 'prefix' => 'cakecache_', // prefix every cache file with this string - * 'lock' => true, // use file locking + * File storage engine. + * default dir is /app/tmp/cache/ + * $cakeCache = array('File', array( + * [optional] 'duration'=> 3600, + * [optional] 'probability'=> 100, + * [optional] 'dir' => '/tmp', // use system tmp directory - remember to use absolute path + * [optional] 'prefix' => 'cake_', // prefix every cache file with this string + * [optional] 'lock' => false, // use file locking + * [optional] 'serialize' => true, * )); - * $cakeCache = array('File'); * * APC (Alternative PHP Cache) - * $cakeCache = array('APC'); + * $cakeCache = array('Apc', array( + * [optional] 'duration'=> 3600, + * [optional] 'probability'=> 100 + * )); * * Xcache (PHP opcode cacher) * $cakeCache = array('Xcache', array( + * [optional] 'duration'=> 3600, + * [optional] 'probability'=> 100, * 'user' => 'admin', // user from xcache.admin.user settings * 'password' => 'your_password', // plaintext password (xcache.admin.pass) - * )); + * )); * * Memcache - * $cakeCache = array('Memcache', [optional]array( - * 'servers' => array( - * '127.0.0.1', // localhost, default port - * '10.0.0.1:12345', // port 12345 - * ), - * 'compress' => true, // compress data in Memcache (slower, but uses less memory) + * $cakeCache = array('Memcache', array( + * [optional] 'duration'=> 3600, + * [optional] 'probability'=> 100, + * [optional] 'servers' => array( + * '127.0.0.1', // localhost, default port + * '10.0.0.1:12345', // port 12345 + * ), + * [optional] 'compress' => true, // compress data in Memcache (slower, but uses less memory) * )); * * Cake Model - * $cakeCache = array('Model', [optional]array( - * 'modelName' => 'DbModel', - * 'dataField' => 'value', - * 'expiryField' => 'expires')); + * $cakeCache = array('Model', array( + * [optional] 'duration'=> 3600, + * [optional] 'probability'=> 100, + * [optional] 'name' => 'Cache', + * [optional] 'fields' => array('data' => 'data', 'expires => 'expires'), + * [optional] 'serialize' => true, + * )); */ $cakeCache = array('File'); -?> +?> \ No newline at end of file