Source

wheezy.web / demos / guestbook / config.py

Diff from to

File demos/guestbook/config.py

 import sqlite3
 
 from wheezy.caching.memory import MemoryCache
+from wheezy.caching.patterns import Cached
 from wheezy.html.ext.mako import widget_preprocessor
 from wheezy.web.templates import MakoTemplate
 
 
 cache = MemoryCache()
+cached = Cached(cache, time=15 * 60)
 
 
 def session():