added a method for clearing all internal caches