diff piecrust/baking/baker.py @ 707:5f552aedd918

bake: Don't clean the `baker` cache on a force bake. This lets the user access their previous bake records.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 25 Mar 2016 23:35:56 -0700
parents 9ae9390192da
children ab5c6a8ae90a
line wrap: on
line diff
--- a/piecrust/baking/baker.py	Sat Apr 16 23:12:06 2016 -0700
+++ b/piecrust/baking/baker.py	Fri Mar 25 23:35:56 2016 -0700
@@ -172,7 +172,7 @@
 
         if reason is not None:
             # We have to bake everything from scratch.
-            self.app.cache.clearCaches(except_names=['app'])
+            self.app.cache.clearCaches(except_names=['app', 'baker'])
             self.force = True
             record.incremental_count = 0
             record.clearPrevious()