diff -r 67185e65f020 -r 08cf02efc7ce cubicweb/server/session.py --- a/cubicweb/server/session.py Fri Nov 18 17:50:56 2016 +0100 +++ b/cubicweb/server/session.py Thu Nov 24 15:36:26 2016 +0100 @@ -504,14 +504,11 @@ return self.transaction_data.get('ecache', {}).values() @_open_only - def drop_entity_cache(self, eid=None): - """drop entity from the cache - - If eid is None, the whole cache is dropped""" - if eid is None: - self.transaction_data.pop('ecache', None) - else: - del self.transaction_data['ecache'][eid] + def drop_entity_cache(self): + """Drop the whole entity cache.""" + for entity in self.cached_entities(): + entity.cw_clear_all_caches() + self.transaction_data.pop('ecache', None) # relations handling #######################################################