added code to clear cache