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.
Pregunta
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.
Solución 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.
Otros consejos
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
.