Reputation: 335
How do I place myself in the Symfony folder with the command in order to clear the cache? The only way I know to access the Symfony files is by typing:
gksudo nautilus /opt/lampp/htdocs
But after using this command the terminal window gets inactvie. I need to open another terminal window to do other actions.
I am running on Linux and Symfony 3. The command I am trying to use to clear the cache is:
php bin/console cache:clear
Otherwise, since I can open the Symfony files with the command above, is it safe to delete everything there is in Symfony/var/cache/dev
?
Upvotes: 0
Views: 7646
Reputation: 7764
The new command to clear the cache in Symfony 3.3 is:
php bin/console cache:clear --no-warmup -e prod
Where -e prod
is the environment, and can be either -e prod
or -e dev
. And yes it is safe to delete var/cache
completely; that will delete all the cache.
EDIT #2 based on comments
Also, run the above command in the folder:
/opt/lampp/htdocs/Symfony
Upvotes: 4