Skip to content

Commit

Permalink
Empty invalidated_caches once deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagnoux committed Aug 27, 2019
1 parent 3f0f9fa commit e988153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openfisca_core/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def purge_cache_of_invalid_values(self):
for (_name, _period) in self.invalidated_caches:
holder = self.get_holder(_name)
holder.delete_arrays(_period)
self.invalidated_caches = set()

def calculate_add(self, variable_name, period):
variable = self.tax_benefit_system.get_variable(variable_name, check_existence = True)
Expand Down

0 comments on commit e988153

Please sign in to comment.