mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-01 17:12:39 +00:00
Adding fix to CacheHelper when $this->url is /
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4269 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
914dffcc14
commit
6efa16eb82
1 changed files with 3 additions and 0 deletions
|
@ -198,6 +198,9 @@ class CacheHelper extends AppHelper {
|
|||
$cacheTime = strtotime($timestamp, $now);
|
||||
}
|
||||
|
||||
if($this->here === '/'){
|
||||
return;
|
||||
}
|
||||
$cache = convertSlash($this->here) . '.php';
|
||||
$file = '<!--cachetime:' . $cacheTime . '--><?php
|
||||
loadController(\'' . $this->controllerName . '\');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue