mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
adding cache check to bootstrap, fixes #3434
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5856 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
53b4a4b9f3
commit
190997988f
1 changed files with 8 additions and 6 deletions
|
@ -44,13 +44,15 @@ if (!defined('SERVER_IIS') && php_sapi_name() == 'isapi') {
|
||||||
require LIBS . 'configure.php';
|
require LIBS . 'configure.php';
|
||||||
}
|
}
|
||||||
require LIBS . 'cache.php';
|
require LIBS . 'cache.php';
|
||||||
|
|
||||||
Configure::getInstance();
|
Configure::getInstance();
|
||||||
|
|
||||||
$cache = Cache::settings();
|
if(Configure::read('Cache.disable') !== true) {
|
||||||
if(empty($cache)) {
|
$cache = Cache::settings();
|
||||||
trigger_error('Cache not configured. Please use Cache::config(); in APP/config/core.php', E_USER_WARNING);
|
if(empty($cache)) {
|
||||||
Cache::config('default', array('engine' => 'File'));
|
trigger_error('Cache not configured. Please use Cache::config(); in APP/config/core.php', E_USER_WARNING);
|
||||||
|
Cache::config('default', array('engine' => 'File'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require LIBS . 'session.php';
|
require LIBS . 'session.php';
|
||||||
|
|
Loading…
Reference in a new issue