Added method to reset cache.