Skip to content

Unintended caching when using dynamically modified dict #155

@pvnbhargava

Description

@pvnbhargava

In some cases, users may have some base dictionary of parameters that they may modify on the fly and use to call self.new_template() in a generator. For some currently unknown reason, when the users modify the base dictionary, the database's cache also gets mutated, so subsequent calls end up using the previously cached value.

Tasks

  • Determine the root cause for this problem in the database and post the results here
  • Modify self.new_template() to create a deep copy of the passed dictionary so that this is no longer a problem

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions