Change environment cache key construction
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Changing from a tuple of the loader ID and template name to a weakref to the loader and the template name should avoid situations whereby the loader has changed, yet the cached templates are returned. This would occur if the id of the new loader matches the old. A weakref is preferred over a direct reference so that the loader can be garbaged collected.
authored by pgjones · committed by pgjones · parent 042dadd · Browse files · 2 files+7 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+7 added−4 removed
- tests:+5 added−3 removed
- other:+2 added−1 removed