Clear cache and log files