Adding additional fix to [4269] to bypass cache when multiple forward slashes are used in the url

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4270 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-01-07 22:44:19 +00:00
parent 6efa16eb82
commit 9ea5c756d4

View file

@ -198,10 +198,11 @@ class CacheHelper extends AppHelper {
$cacheTime = strtotime($timestamp, $now);
}
if($this->here === '/'){
$cache = convertSlash($this->here);
if(empty($cache)){
return;
}
$cache = convertSlash($this->here) . '.php';
$cache = $cache . '.php';
$file = '<!--cachetime:' . $cacheTime . '--><?php
loadController(\'' . $this->controllerName . '\');
loadModels();