How to clear the Magento cache without login using ssh?

login via ssh then use following command to remove cache and session folder contents.

rm -rf var/cache/*
rm -rf var/session/*

done !

Advertisements