Add an API to clear cache