Clearing the cache 



rm -rf downloader/pearlib/cache/* 
rm -rf downloader/pearlib/download/* 
rm -rf var/cache/* 
rm -rf var/session/* 
rm -rf var/report/* 
rm -rf var/tmp/* 


Clearing the image cache


 

rm -rf media/catalog/product/cache/* 
rm -rf media/tmp/*

 

Resetting file permissions


 

find . -type f -exec chmod 644 {} \; 
find . -type d -exec chmod 755 {} \;