caching - Symfony2 - relative path in cache file -
i work symfony2. want prepare cached files before putting them on server (not same machine).
problem in content files, because of them consists absolute path resources, example:
file: ./dev/classes.php.meta , file: ./dev/templates.php, file: ./dev/assetic/routing.yml 'webprofilerbundle:profiler:toolbar_item.html.twig' => '/var/www/symfony/vendor/symfony/symfony/src/symfony/bundle/webprofilerbundle/resources/views/profiler/toolbar_item.html.twig', is there way change relative path?
the best way use warmup process cache command.
run command clear cache without passing no-warmup option:
php app/console cache:clear --env=prod --no-debug if use no-warmup option or manually delete cache folder content, need run warmup command:
php app/console cache:warmup --env=prod http://symfony.com/doc/master/cookbook/deployment-tools.html#c-clear-your-symfony-cache
Comments
Post a Comment