clearCache: set instances of all factories to null
edge