Update caches metrics related code.