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

@ -47,11 +47,13 @@ if (!defined('SERVER_IIS') && php_sapi_name() == 'isapi') {
Configure::getInstance();
if(Configure::read('Cache.disable') !== true) {
$cache = Cache::settings();
if(empty($cache)) {
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 . 'security.php';