Fixed a documenation bug in the cache extension.
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Feb 2009 10:11:57 +0000 (11:11 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 8 Feb 2009 10:11:57 +0000 (11:11 +0100)
--HG--
branch : trunk

docs/cache_extension.py

index c736a6503fc33543f02a1770b9182e89e7158c7d..8fdefb5c59de761d444de794e92ae4075865c2df 100644 (file)
@@ -49,7 +49,7 @@ class FragmentCacheExtension(Extension):
         # if there is no fragment in the cache, render it and store
         # it in the cache.
         rv = self.environment.fragment_cache.get(key)
-        if rv is None:
+        if rv is not None:
             return rv
         rv = caller()
         self.environment.fragment_cache.add(key, rv, timeout)