Added support for clearing cache.