"Fixes #3449, Dispatcher using wrong filename for cache lookup"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6110 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-03 00:22:01 +00:00
parent aa86d05b96
commit 063faf5a9c

View file

@ -635,9 +635,9 @@ class Dispatcher extends Object {
}
if (Configure::read('Cache.check') === true) {
$filename = CACHE . 'views' . DS . convertSlash($url) . '.php';
$filename = CACHE . 'views' . DS . convertSlash($this->here) . '.php';
if (!file_exists($filename)) {
$filename = CACHE . 'views' . DS . convertSlash($url) . '_index.php';
$filename = CACHE . 'views' . DS . convertSlash($this->here) . '_index.php';
}
if (file_exists($filename)) {
if (!class_exists('View')) {