server/repository.py
branchstable
changeset 8133 b0a70092946a
parent 8074 a7f76e322659
child 8190 2a3c1b787688
child 8224 e35d4d4f7eb3
equal deleted inserted replaced
8132:460472499d6d 8133:b0a70092946a
   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>"""