Answer the question
In order to leave comments, you need to log in
The clear cache command does not work in cron. Why?
I execute the command:
php ~/www/site.ru/bin/console cache:clear --env=prod
echo 'Hello, World';
. Answer the question
In order to leave comments, you need to log in
I ran the command:
I realized that the version does not match the required one.
After some googling, I figured out how to solve:
/opt/php55/bin/php ~/www/site.ru/bin/console cache:clear --env=prod
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question