comparison 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
comparison
equal deleted inserted replaced
703:dab26ab3d533 707:5f552aedd918
170 if max_time >= record.previous.bake_time: 170 if max_time >= record.previous.bake_time:
171 reason = "templates modified" 171 reason = "templates modified"
172 172
173 if reason is not None: 173 if reason is not None:
174 # We have to bake everything from scratch. 174 # We have to bake everything from scratch.
175 self.app.cache.clearCaches(except_names=['app']) 175 self.app.cache.clearCaches(except_names=['app', 'baker'])
176 self.force = True 176 self.force = True
177 record.incremental_count = 0 177 record.incremental_count = 0
178 record.clearPrevious() 178 record.clearPrevious()
179 logger.info(format_timed( 179 logger.info(format_timed(
180 start_time, 180 start_time,