Refresh Magento1 Cache from Command Line

change your directory to Magento root then execute this command

php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();'