Add clear function to clear cache file.