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