When I call the following (using QGIS 3.0.2):
self.layerCatalog = QgsCore.QgsVectorLayer( "MultiPolygon?%s" % s_fields, nameLayer, "memory") if self.iface.mapCanvas().isCachingEnabled(): self.layerCatalog.setCacheImage(None)
I get the error "AttributeError: 'QgsVectorLayer' object has no attribute 'setCacheImage'"
setCacheImage is a function in the parent class QgsMapLayer in QGIS 2. It is not there in QGIS 3. Looking at the Backwards Incompatible Changes site here, I do not see where it was moved or renamed. Anyone know?