refactoring cache engines, adding tests, update configure fixes #3082

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5700 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-09-30 07:45:34 +00:00
parent 908f4c8a39
commit 4f8f7a7045
17 changed files with 720 additions and 497 deletions

View file

@ -1122,7 +1122,7 @@
*/
function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
if (defined('DISABLE_CACHE')) {
if (Configure::read('Cache.disable')) {
return null;
}
$now = time();