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

Commit 4f1bbbe

Browse files
committed
* caching now consideres symfony web dir in a sub dir of docroot
1 parent a9b7be3 commit 4f1bbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache/sfRawFileCache.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ static public function setCacheKey($internalUri, $hostName = '', $vary = '', $co
213213
{
214214
$context = sfContext::getInstance();
215215
$internalUri = str_replace('sfImageTransformator/index', '@'.$context->getRouting()->getCurrentRouteName(), $internalUri);
216-
return $context->getController()->genUrl($internalUri, false);
216+
return str_replace($context->getRequest()->getRelativeUrlRoot(), '', $context->getController()->genUrl($internalUri, false));
217217
}
218218
}

0 commit comments

Comments
 (0)