Added clearNamespaceCaches