summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES6
-rw-r--r--mako/cache.py6
2 files changed, 11 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index aa7a83d..9a34681 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+0.6.1
+- [bug] Added special compatibility for the 0.5.0
+ Cache() constructor, which was preventing file
+ version checks and not allowing Mako 0.6 to
+ recompile the module files.
+
0.6.0
- [feature] Template caching has been converted into a plugin
diff --git a/mako/cache.py b/mako/cache.py
index 6688a56..959640e 100644
--- a/mako/cache.py
+++ b/mako/cache.py
@@ -60,7 +60,11 @@ class Cache(object):
"""
- def __init__(self, template):
+ def __init__(self, template, *args):
+ # check for a stale template calling the
+ # constructor
+ if isinstance(template, basestring) and args:
+ return
self.template = template
self.id = template.module.__name__
self.starttime = template.module._modified_time