987 extidcache = self._extid_cache |
987 extidcache = self._extid_cache |
988 rqlcache = self.querier._rql_cache |
988 rqlcache = self.querier._rql_cache |
989 for eid in eids: |
989 for eid in eids: |
990 try: |
990 try: |
991 etype, uri, extid, auri = etcache.pop(typed_eid(eid)) # may be a string in some cases |
991 etype, uri, extid, auri = etcache.pop(typed_eid(eid)) # may be a string in some cases |
992 rqlcache.pop('%s X WHERE X eid %s' % (etype, eid), None) |
992 rqlcache.pop( ('%s X WHERE X eid %s' % (etype, eid),), None) |
993 extidcache.pop((extid, uri), None) |
993 extidcache.pop((extid, uri), None) |
994 except KeyError: |
994 except KeyError: |
995 etype = None |
995 etype = None |
996 rqlcache.pop('Any X WHERE X eid %s' % eid, None) |
996 rqlcache.pop( ('Any X WHERE X eid %s' % eid,), None) |
997 for source in self.sources: |
997 for source in self.sources: |
998 source.clear_eid_cache(eid, etype) |
998 source.clear_eid_cache(eid, etype) |
999 |
999 |
1000 def type_from_eid(self, eid, session=None): |
1000 def type_from_eid(self, eid, session=None): |
1001 """return the type of the entity with id <eid>""" |
1001 """return the type of the entity with id <eid>""" |