Skip to content

Commit

Permalink
reset of entities cache
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 6, 2015
1 parent f10d47e commit 5c7741d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/src/entity_manager/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,10 @@ def reload_many(self, entities, options = None):
value = new_entity.get_value(name)
entity.set_value(name, value)

# resets the complete set of entity's cache mechanisms
# so that a new entity cache is created from this reload
entity.reset_cache()

# enables the entity, providing the entity with the
# mechanisms necessary for data source communication
self.enable(entity)
Expand Down

0 comments on commit 5c7741d

Please sign in to comment.