Commits

Andriy Kornatskyy committed 77112b1

Fixed caching issues in demo.

  • Participants
  • Parent commits 9af5160

Comments (0)

Files changed (1)

 
 
 cache = MemoryCache()
-cache_factory = lambda: cache
 
 captcha_image = captcha(drawings=[
     background(),
 ])
 
 
-captcha = CaptchaContext(captcha_image, cache_factory)
+captcha = CaptchaContext(captcha_image, cache)
 captcha_handler = captcha.create_handler(quality=65)
 
 
 
 
 options = {
-    'http_cache_factory': cache_factory
+    'http_cache': cache
 }
 main = WSGIApplication([
     bootstrap_http_defaults,