mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating skel core.php, fixes #3332
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5706 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7c366d4803
commit
312fd044af
1 changed files with 37 additions and 37 deletions
|
@ -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(
|
||||
* $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
|
||||
* ),
|
||||
* 'compress' => true, // compress data in Memcache (slower, but uses less memory)
|
||||
* [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');
|
||||
?>
|
Loading…
Reference in a new issue