commit | 1a61008d61cff5b6c95f7b7298e47f2b18685247 | [log] [tgz] |
---|---|---|
author | pgjones <philip.graham.jones@googlemail.com> | Sat May 21 16:17:21 2016 +0100 |
committer | pgjones <philip.graham.jones@googlemail.com> | Sat May 21 16:21:22 2016 +0100 |
tree | 90b5f602c6748c7ba87564a6d4d446fb56d1c5b0 | |
parent | 042dadda53120176100241422f93a42238779d40 [diff] |
Change environment cache key construction 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.