mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 04:52:42 +00:00
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:
parent
75e157a167
commit
97a57a0f05
8 changed files with 64 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue