def _prepare(cls):
        # the dbmodel is either the proxy base or ourselves
        dbmodel = cls._meta.proxy_for_model if cls._meta.proxy else cls
        cls.__dbclass__ = dbmodel
        dbmodel._idmapper_recache_protection = False
        if not hasattr(dbmodel, "__instance_cache__"):
            # we store __instance_cache__ only on the dbmodel base
            dbmodel.__instance_cache__ = {}
        super(SharedMemoryModelBase, cls)._prepare()
Prepare the cache, making sure that proxies of the same db base
dataset/ETHPy150Open evennia/evennia/evennia/utils/idmapper/models.py/SharedMemoryModelBase._prepare