mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Moving the default cache configuration to app/config/bootstrap.php, as its not used by CakePHP anymore, and is an application configuration value.
This commit is contained in:
parent
31e82b08df
commit
4efef1ed67
2 changed files with 9 additions and 6 deletions
|
@ -1,9 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php
|
* This file is loaded automatically by the app/webroot/index.php file after core.php
|
||||||
*
|
*
|
||||||
* This is an application wide file to load any function that is not used within a class
|
* This file should load/create any application wide configuration settings, such as
|
||||||
* define. You can also use this to include or require any files in your application.
|
* Caching, Logging, loading additional configuration files.
|
||||||
|
*
|
||||||
|
* You should also use this file to include any files that provide global functions/constants
|
||||||
|
* that your application uses.
|
||||||
*
|
*
|
||||||
* PHP 5
|
* PHP 5
|
||||||
*
|
*
|
||||||
|
@ -20,6 +23,9 @@
|
||||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Setup a 'default' cache configuration for use in the application.
|
||||||
|
Cache::config('default', array('engine' => 'File'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The settings below can be used to set additional paths to models, views and controllers.
|
* The settings below can be used to set additional paths to models, views and controllers.
|
||||||
* This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
|
* This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
|
||||||
|
|
|
@ -290,9 +290,6 @@ if (extension_loaded('apc')) {
|
||||||
$engine = 'Apc';
|
$engine = 'Apc';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup a 'default' cache configuration for use in the application.
|
|
||||||
Cache::config('default', array('engine' => $engine));
|
|
||||||
|
|
||||||
// In development mode, caches should expire quickly.
|
// In development mode, caches should expire quickly.
|
||||||
$duration = '+999 days';
|
$duration = '+999 days';
|
||||||
if (Configure::read('debug') >= 1) {
|
if (Configure::read('debug') >= 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue