Commits

Ben Bangert committed daa62c9

Only set enabled option if we should include the default

  • Participants
  • Parent commits 871b3ce

Comments (0)

Files changed (2)

 Release 1.6 (**tip**)
 =======================
 
+* Fix bug with CacheMiddleware clobbering enabled setting.
 * Update option for ``cookie_expires`` so that it can now handle an integer
   which will be used as the seconds till the cookie expires.
 * Merge fix for Issue 31, can now handle unicode cache keys.

File beaker/util.py

     coerce_cache_params(options)
 
     # Set cache to enabled if not turned off
-    if 'enabled' not in options:
+    if 'enabled' not in options and include_defaults:
         options['enabled'] = True
 
     # Configure region dict if regions are available