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:
phpnut 2007-01-07 22:16:38 +00:00
parent 914dffcc14
commit 6efa16eb82

View file

@ -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 . '\');