994d56ea011412f0eac4c273465a331b4d1b6f98

Author: gwoo

Date: 2009-12-14 13:08:27 -0800

updating core.php

diff --git a/config/core.php b/config/core.php index 135fdbe..2bfb228 100755 --- a/config/core.php +++ b/config/core.php @@ -76,13 +76,13 @@ */ Configure::write('Session.save', 'php'); /** - * The name of the table used to store CakePHP database sessions. + * The model name to be used for the session model. * * 'Session.save' must be set to 'database' in order to utilize this constant. * - * The table name set here should *not* include any table prefix defined elsewhere. + * The model name set here should *not* be used elsewhere in your application. */ - //Configure::write('Session.table', 'cake_sessions'); + //Configure::write('Session.model', 'Session'); /** * The DATABASE_CONFIG::$var to use for database session handling. * @@ -106,7 +106,7 @@ * When set to false, HTTP_USER_AGENT will not be checked * in the session */ - Configure::write('Session.checkAgent', true); + Configure::write('Session.checkAgent', false); /** * The level of CakePHP security. The session timeout time defined * in 'Session.timeout' is multiplied according to the settings here. @@ -119,7 +119,7 @@ * CakePHP session IDs are also regenerated between requests if * 'Security.level' is set to 'high'. */ - Configure::write('Security.level', 'medium'); + Configure::write('Security.level', 'low'); /** * A random string used in security hashing methods. */ @@ -146,57 +146,62 @@ // Configure::write('Acl.classname', 'DB_ACL'); // Configure::write('Acl.database', 'default'); /** + * If you are on PHP 5.3 uncomment this line and correct your server timezone + * to fix the date & time related errors. + */ + //date_default_timezone_set('UTC'); +/** + * * Cache Engine Configuration + * Default settings provided below * * File storage engine. - * default dir is /app/tmp/cache/ - * Cache::config('default', array('engine' => 'File' //[required] - * 'duration'=> 3600, //[optional] - * 'probability'=> 100, //[optional] - * 'path' => '/tmp', //[optional] use system tmp directory - remember to use absolute path - * 'prefix' => 'cake_', //[optional] prefix every cache file with this string - * 'lock' => false, //[optional] use file locking - * 'serialize' => true, [optional] - * ) - * ); - * - * APC (Alternative PHP Cache) - * Cache::config('default', array('engine' => 'Apc' //[required] - * 'duration'=> 3600, //[optional] - * 'probability'=> 100, //[optional] - * ) - * ); - * - * Xcache (PHP opcode cacher) - * Cache::config('default', array('engine' => 'Xcache' //[required] - * 'duration'=> 3600, //[optional] - * 'probability'=> 100, //[optional] - * 'user' => 'admin', //user from xcache.admin.user settings - * password' => 'your_password', //plaintext password (xcache.admin.pass) - * ) - * ); - * - * Memcache - * Cache::config('default', array('engine' => 'Memcache' //[required] - * '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, // [optional] compress data in Memcache (slower, but uses less memory) - * ) - * ); - * - * Cake Model - * Cache::config('default', array('engine' => 'Model' //[required] - * 'duration'=> 3600, //[optional] - * 'probability'=> 100, //[optional] - * 'className' => 'Cache', //[optional] - * 'fields' => array('data' => 'data', 'expires' => 'expires'), //[optional] - * 'serialize' => true, [optional] - * ) - * ); + * + * Cache::config('default', array( + * 'engine' => 'File', //[required] + * 'duration'=> 3600, //[optional] + * 'probability'=> 100, //[optional] + * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path + * 'prefix' => 'cake_', //[optional] prefix every cache file with this string + * 'lock' => false, //[optional] use file locking + * 'serialize' => true, [optional] + * )); + * + * + * APC (http://pecl.php.net/package/APC) + * + * Cache::config('default', array( + * 'engine' => 'Apc', //[required] + * 'duration'=> 3600, //[optional] + * 'probability'=> 100, //[optional] + * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string + * )); + * + * Xcache (http://xcache.lighttpd.net/) + * + * Cache::config('default', array( + * 'engine' => 'Xcache', //[required] + * 'duration'=> 3600, //[optional] + * 'probability'=> 100, //[optional] + * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string + * 'user' => 'user', //user from xcache.admin.user settings + * 'password' => 'password', //plaintext password (xcache.admin.pass) + * )); + * + * + * Memcache (http://www.danga.com/memcached/) + * + * Cache::config('default', array( + * 'engine' => 'Memcache', //[required] + * 'duration'=> 3600, //[optional] + * 'probability'=> 100, //[optional] + * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string + * 'servers' => array( + * '127.0.0.1:11211' // localhost, default port 11211 + * ), //[optional] + * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory) + * )); + * */ Cache::config('default', array('engine' => 'File'));