fixing bug in error handler when callbacks were moved to construct classes, moved callbacks back to dispatcher for now until we find a better place in the controller, fixed caching for the "home" page by adding check for "/', original test case was incorrect.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7177 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-06-12 18:36:08 +00:00
parent 75e157a167
commit 97a57a0f05
8 changed files with 64 additions and 12 deletions

View file

@ -222,7 +222,11 @@ class CacheHelper extends AppHelper {
} else {
$cacheTime = strtotime($timestamp, $now);
}
$cache = Inflector::slug($this->here);
$path = $this->here;
if ($this->here == '/') {
$path = 'home';
}
$cache = Inflector::slug($path);
if (empty($cache)) {
return;