add an API to clear the cache