Adding clear cache functionality