-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
In my dev environment I have /app_dev.php appended to the url. This causes a problem with generating the routes for the CachePathResolver because the line below converts the generated route to the file path to check for the cache file, but it still includes the app_dev.php filename
$path = str_replace(
urlencode(ltrim($path, '/')),
urldecode(ltrim($path, '/')),
$this->router->generate('_imagine_'.$filter, array(
'path' => ltrim($path, '/')
), $absolute)
);
obviously /var/www/sitename/app/../web/app_dev.php/media/cache/background/background.jpg does not exist so the file is always regenerated. On a page with a lot of generated images this makes browsing in the dev environment painfully slow.
I have implemented my own solution to this but its pretty hacky. Is there a way that the generated route can return the url without /app_dev.php ?
Metadata
Metadata
Assignees
Labels
No labels