Commits

danjac  committed 501c78f

selective cached

  • Participants
  • Parent commits c820f89

Comments (0)

Files changed (1)

File newsmeme/__init__.py

     
     @app.context_processor
     def get_tags():
-        return _get_tags()
-
-    @cache.cached()
-    def _get_tags(key_prefix="tags"):
         tags = Tag.query.order_by(Tag.num_posts.desc()).limit(10).all()
         return dict(tags=tags)