diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-11-21 15:54:32 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-11-21 15:54:32 +0100 |
commit | 4dfaac68519cc6786f6960360e82eb2073700d89 (patch) | |
tree | 841f2a2a60b82c4d328fa7a7685b5518cb37d99e | |
parent | 7b5aac96fc57b5016ba159085f9ff982a4b3afe5 (diff) | |
download | bottle-4dfaac68519cc6786f6960360e82eb2073700d89.tar.gz |
Fix #405: Templates are not cached properly.
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3099,7 +3099,7 @@ def template(*args, **kwargs): adapter = kwargs.pop('template_adapter', SimpleTemplate) lookup = kwargs.pop('template_lookup', TEMPLATE_PATH) tplid = (id(lookup), tpl) - if tpl not in TEMPLATES or DEBUG: + if tplid not in TEMPLATES or DEBUG: settings = kwargs.pop('template_settings', {}) if isinstance(tpl, adapter): TEMPLATES[tplid] = tpl |