Skip to content
This repository was archived by the owner on Mar 1, 2018. It is now read-only.

Commit fe0bcaa

Browse files
committed
* bugfix. in case of multiple routes with similar url patterns but different save paths the current routename is now considered
1 parent 292b904 commit fe0bcaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cache/sfRawFileCache.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ protected function getFilePath($key)
173173
*/
174174
static public function setCacheKey($internalUri, $hostName = '', $vary = '', $contextualPrefix = '', $sfViewCacheManager)
175175
{
176-
return sfContext::getInstance()->getController()->genUrl($internalUri, false);
176+
$context = sfContext::getInstance();
177+
$internalUri = str_replace('sfImageTransformator/index', '@'.$context->getRouting()->getCurrentRouteName(), $internalUri);
178+
return $context->getController()->genUrl($internalUri, false);
177179
}
178180
}

0 commit comments

Comments
 (0)