Added support for clearning the cache.