Browse files

Fixed a documenation bug in the cache extension.

--HG--
branch : trunk
  • Loading branch information...
1 parent ee2d3c4 commit 7850dc597e99ffd62628ce9f319f18373f216b6c @mitsuhiko mitsuhiko committed Feb 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/cache_extension.py
View
2 docs/cache_extension.py
@@ -49,7 +49,7 @@ def _cache_support(self, name, timeout, caller):
# 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)

0 comments on commit 7850dc5

Please sign in to comment.