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:
gwoo 2007-10-22 16:04:04 +00:00
parent 53b4a4b9f3
commit 190997988f

View file

@ -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';