I wanted to add a symfony command as cron job but my hosting server (2freehosting.com) does not allow me to add following command:
php app/console cache:clear --env=prod --no-debug
Only php path/to/file type of command is allowed.
So I want to create a file clearCache.php to run above command and add it as cron job
php path/to/clearCache.php
How can I call this symfony command in clearCache.php ?
My directory structure:
-app
-bin
-vendor
-src
-public_html
-bundles
-app.php
.....
-clearCache.php