문제

When I perform this action:

sudo php app/console cache:clear --env=prod

I get this error:

[ErrorException]
  Warning: rename(/var/www/mysite.co.uk/app/cache/prod,/var/www/mysite.co.uk/app/cache/prod_old): Directory not empty in /var/www/mysite.co.uk/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php line 74

Can anybody help? Im tempted to manually delete all the files in /cache/prod but Im concerned this may cause more problems.

도움이 되었습니까?

해결책 2

Have you an existing /var/www/mysite.co.uk/app/cache/prod_old directory?

You can delete manually the cache/prod to force cache cleaning.

다른 팁

Just clear cache manually by rm -Rf app/cache/*.

After that you should warm up cache via php app/console cache:warmup --env=prod

Note, users will lose the session if you didn't configure session: save_path in config.yml.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top