add cache clear functionality