2005-07-04 01:07:14 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
2005-12-23 21:57:26 +00:00
|
|
|
* This is core configuration file.
|
|
|
|
*
|
2007-09-30 07:45:34 +00:00
|
|
|
* Use it to configure core behavior of Cake.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2008-10-30 17:30:26 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
|
|
|
|
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* @filesource
|
2008-10-30 17:30:26 +00:00
|
|
|
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.app.config
|
|
|
|
* @since CakePHP(tm) v 0.2.9
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2006-05-26 05:29:17 +00:00
|
|
|
*/
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-02-17 18:38:36 +00:00
|
|
|
/**
|
|
|
|
* CakePHP Debug Level:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* Production Mode:
|
|
|
|
* 0: No error messages, errors, or warnings shown. Flash messages redirect.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* Development Mode:
|
|
|
|
* 1: Errors and warnings shown, model caches refreshed, flash messages halted.
|
|
|
|
* 2: As in 1, but also with full debug messages and SQL output.
|
|
|
|
* 3: As in 2, but also with full controller dump.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* In production mode, flash messages redirect after a time interval.
|
|
|
|
* In development mode, you need to click the flash message to continue.
|
2005-06-21 16:48:06 +00:00
|
|
|
*/
|
2009-09-18 00:25:44 +00:00
|
|
|
Configure::write('debug', 2);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CakePHP Log Level:
|
|
|
|
*
|
|
|
|
* In case of Production Mode CakePHP gives you the possibility to continue logging errors.
|
|
|
|
*
|
|
|
|
* The following parameters can be used:
|
|
|
|
* Boolean: Set true/false to activate/deactivate logging
|
|
|
|
* Configure::write('log', true);
|
|
|
|
*
|
|
|
|
* Integer: Use built-in PHP constants to set the error level (see error_reporting)
|
|
|
|
* Configure::write('log', E_ERROR | E_WARNING);
|
|
|
|
* Configure::write('log', E_ALL ^ E_NOTICE);
|
|
|
|
*/
|
|
|
|
Configure::write('log', true);
|
|
|
|
|
2007-12-25 09:08:36 +00:00
|
|
|
/**
|
|
|
|
* Application wide charset encoding
|
|
|
|
*/
|
|
|
|
Configure::write('App.encoding', 'UTF-8');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-15 21:56:31 +00:00
|
|
|
/**
|
|
|
|
* To configure CakePHP *not* to use mod_rewrite and to
|
|
|
|
* use CakePHP pretty URLs, remove these .htaccess
|
|
|
|
* files:
|
|
|
|
*
|
|
|
|
* /.htaccess
|
|
|
|
* /app/.htaccess
|
|
|
|
* /app/webroot/.htaccess
|
|
|
|
*
|
|
|
|
* And uncomment the App.baseUrl below:
|
|
|
|
*/
|
|
|
|
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-15 21:56:31 +00:00
|
|
|
/**
|
|
|
|
* Uncomment the define below to use CakePHP admin routes.
|
|
|
|
*
|
|
|
|
* The value of the define determines the name of the route
|
|
|
|
* and its associated controller actions:
|
|
|
|
*
|
|
|
|
* 'admin' -> admin_index() and /admin/controller/index
|
|
|
|
* 'superuser' -> superuser_index() and /superuser/controller/index
|
|
|
|
*/
|
|
|
|
//Configure::write('Routing.admin', 'admin');
|
2007-10-01 18:58:35 +00:00
|
|
|
|
|
|
|
/**
|
2007-10-15 21:56:31 +00:00
|
|
|
* Turn off all caching application-wide.
|
2007-10-01 18:58:35 +00:00
|
|
|
*
|
|
|
|
*/
|
2007-10-15 21:56:31 +00:00
|
|
|
//Configure::write('Cache.disable', true);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2006-03-12 00:11:40 +00:00
|
|
|
/**
|
2007-10-15 21:56:31 +00:00
|
|
|
* Enable cache checking.
|
|
|
|
*
|
|
|
|
* If set to true, for view caching you must still use the controller
|
|
|
|
* var $cacheAction inside your controllers to define caching settings.
|
|
|
|
* You can either set it controller-wide by setting var $cacheAction = true,
|
|
|
|
* or in each action using $this->cacheAction = true.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2006-03-12 00:11:40 +00:00
|
|
|
*/
|
2007-10-15 21:56:31 +00:00
|
|
|
//Configure::write('Cache.check', true);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2006-02-08 15:25:34 +00:00
|
|
|
/**
|
2007-04-30 06:01:54 +00:00
|
|
|
* Defines the default error type when using the log() function. Used for
|
2007-02-17 18:38:36 +00:00
|
|
|
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
|
2006-02-18 23:42:21 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('LOG_ERROR', 2);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2006-02-17 10:12:15 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The preferred session handling method. Valid values:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* 'php' Uses settings defined in your php.ini.
|
|
|
|
* 'cake' Saves session files in CakePHP's /tmp directory.
|
|
|
|
* 'database' Uses CakePHP's database sessions.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* To define a custom session handler, save it at /app/config/<name>.php.
|
2007-10-16 09:05:25 +00:00
|
|
|
* Set the value of 'Session.save' to <name> to utilize it in CakePHP.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2009-04-15 00:12:44 +00:00
|
|
|
* To use database sessions, run the app/config/schema/sessions.php schema using
|
|
|
|
* the cake shell command: cake schema run create Sessions
|
2006-02-17 10:12:15 +00:00
|
|
|
*
|
|
|
|
*/
|
2007-10-16 09:05:25 +00:00
|
|
|
Configure::write('Session.save', 'php');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2009-04-15 00:12:44 +00:00
|
|
|
/**
|
|
|
|
* The model name to be used for the session model.
|
|
|
|
*
|
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
|
|
|
*
|
|
|
|
* The model name set here should *not* be used elsewhere in your application.
|
|
|
|
*/
|
|
|
|
//Configure::write('Session.model', 'Session');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2006-05-26 05:29:17 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The name of the table used to store CakePHP database sessions.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-10-16 09:05:25 +00:00
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* The table name set here should *not* include any table prefix defined elsewhere.
|
2009-04-15 00:12:44 +00:00
|
|
|
*
|
|
|
|
* Please note that if you set a value for Session.model (above), any value set for
|
|
|
|
* Session.table will be ignored.
|
|
|
|
*
|
|
|
|
* [Note: Session.table is deprecated as of CakePHP 1.3]
|
2006-05-26 05:29:17 +00:00
|
|
|
*/
|
2007-10-20 10:14:30 +00:00
|
|
|
//Configure::write('Session.table', 'cake_sessions');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-20 10:14:30 +00:00
|
|
|
/**
|
|
|
|
* The DATABASE_CONFIG::$var to use for database session handling.
|
|
|
|
*
|
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
|
|
|
*/
|
|
|
|
//Configure::write('Session.database', 'default');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The name of CakePHP's session cookie.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*/
|
2007-10-16 09:05:25 +00:00
|
|
|
Configure::write('Session.cookie', 'CAKEPHP');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-17 00:40:47 +00:00
|
|
|
/**
|
|
|
|
* Session time out time (in seconds).
|
|
|
|
* Actual value depends on 'Security.level' setting.
|
|
|
|
*/
|
|
|
|
Configure::write('Session.timeout', '120');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-17 00:40:47 +00:00
|
|
|
/**
|
|
|
|
* If set to false, sessions are not automatically started.
|
|
|
|
*/
|
|
|
|
Configure::write('Session.start', true);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-10-17 00:40:47 +00:00
|
|
|
/**
|
|
|
|
* When set to false, HTTP_USER_AGENT will not be checked
|
|
|
|
* in the session
|
|
|
|
*/
|
|
|
|
Configure::write('Session.checkAgent', true);
|
2009-09-10 15:32:21 +00:00
|
|
|
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
/**
|
2007-10-16 09:05:25 +00:00
|
|
|
* The level of CakePHP security. The session timeout time defined
|
|
|
|
* in 'Session.timeout' is multiplied according to the settings here.
|
2007-02-17 18:38:36 +00:00
|
|
|
* Valid values:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-10-16 09:05:25 +00:00
|
|
|
* 'high' Session timeout in 'Session.timeout' x 10
|
|
|
|
* 'medium' Session timeout in 'Session.timeout' x 100
|
|
|
|
* 'low' Session timeout in 'Session.timeout' x 300
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
|
|
|
* CakePHP session IDs are also regenerated between requests if
|
2007-10-16 09:05:25 +00:00
|
|
|
* 'Security.level' is set to 'high'.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*/
|
2007-10-16 09:05:25 +00:00
|
|
|
Configure::write('Security.level', 'high');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2006-01-17 05:13:38 +00:00
|
|
|
/**
|
2007-10-17 00:40:47 +00:00
|
|
|
* A random string used in security hashing methods.
|
2006-01-17 05:13:38 +00:00
|
|
|
*/
|
2008-09-04 13:36:38 +00:00
|
|
|
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* Compress CSS output by removing comments, whitespace, repeating tags, etc.
|
|
|
|
* This requires a/var/cache directory to be writable by the web server for caching.
|
2007-11-22 17:57:57 +00:00
|
|
|
* and /vendors/csspp/csspp.php
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-11-22 17:57:57 +00:00
|
|
|
* To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
|
2005-06-21 16:48:06 +00:00
|
|
|
*/
|
2007-12-31 05:19:00 +00:00
|
|
|
//Configure::write('Asset.filter.css', 'css.php');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2007-12-31 05:19:00 +00:00
|
|
|
/**
|
|
|
|
* Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
|
|
|
|
* output, and setting the config below to the name of the script.
|
|
|
|
*
|
|
|
|
* To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
|
|
|
|
*/
|
|
|
|
//Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2005-08-21 06:49:02 +00:00
|
|
|
/**
|
2007-07-31 14:04:18 +00:00
|
|
|
* The classname and database used in CakePHP's
|
2007-02-17 18:38:36 +00:00
|
|
|
* access control lists.
|
2005-08-21 06:49:02 +00:00
|
|
|
*/
|
2008-05-22 02:00:36 +00:00
|
|
|
Configure::write('Acl.classname', 'DbAcl');
|
2007-10-14 01:09:21 +00:00
|
|
|
Configure::write('Acl.database', 'default');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2009-07-31 15:48:30 +00:00
|
|
|
/**
|
|
|
|
* 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');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2009-07-31 15:48:30 +00:00
|
|
|
/**
|
|
|
|
* 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');
|
2007-04-30 07:47:14 +00:00
|
|
|
/**
|
2008-06-02 17:35:56 +00:00
|
|
|
*
|
2007-09-30 07:45:34 +00:00
|
|
|
* Cache Engine Configuration
|
2008-06-02 17:35:56 +00:00
|
|
|
* Default settings provided below
|
2007-09-30 07:45:34 +00:00
|
|
|
*
|
|
|
|
* File storage engine.
|
2008-06-02 17:35:56 +00:00
|
|
|
*
|
|
|
|
* Cache::config('default', array(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'File', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* '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(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Apc', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* '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(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Xcache', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* '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(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Memcache', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* '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)
|
|
|
|
* ));
|
|
|
|
*
|
2007-10-14 01:09:21 +00:00
|
|
|
*/
|
|
|
|
Cache::config('default', array('engine' => 'File'));
|
2008-12-18 00:11:23 +00:00
|
|
|
?>
|