equal
deleted
inserted
replaced
665 self._type_cache = {} |
665 self._type_cache = {} |
666 etypes = None |
666 etypes = None |
667 else: |
667 else: |
668 etypes = [] |
668 etypes = [] |
669 etcache = self._type_cache |
669 etcache = self._type_cache |
670 rqlcache = self.querier.rql_cache |
|
671 for eid in eids: |
670 for eid in eids: |
672 try: |
671 try: |
673 etype = etcache.pop(int(eid)) # may be a string in some cases |
672 etype = etcache.pop(int(eid)) # may be a string in some cases |
674 rqlcache.pop(('%s X WHERE X eid %s' % (etype, eid),), None) |
|
675 except KeyError: |
673 except KeyError: |
676 etype = None |
674 etype = None |
677 rqlcache.pop(('Any X WHERE X eid %s' % eid,), None) |
|
678 etypes.append(etype) |
675 etypes.append(etype) |
|
676 self.querier.clear_caches(eids, etypes) |
679 self.system_source.clear_caches(eids, etypes) |
677 self.system_source.clear_caches(eids, etypes) |
680 |
678 |
681 def type_from_eid(self, eid, cnx): |
679 def type_from_eid(self, eid, cnx): |
682 """Return the type of the entity with id `eid`""" |
680 """Return the type of the entity with id `eid`""" |
683 try: |
681 try: |