diff piecrust/baking/baker.py @ 133:9e4c2e68a129

Optimize server for files that already exist. * Only try to find new assets if no previously existing asset or page could be used. * Tidy up a bit the API for passing and returning bake/process records. * Put the process record in its place.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 18 Nov 2014 21:32:04 -0800
parents bc63dc20baa0
children 0609739169bd
line wrap: on
line diff
--- a/piecrust/baking/baker.py	Tue Nov 18 21:29:12 2014 -0800
+++ b/piecrust/baking/baker.py	Tue Nov 18 21:32:04 2014 -0800
@@ -303,7 +303,6 @@
         record = TransitionalBakeRecord()
         record_cache = self.app.cache.getCache('baker')
         record_name = (
-                'pages_' +
                 hashlib.md5(self.out_dir.encode('utf8')).hexdigest() +
                 '.record')
         if not self.force and record_cache.has(record_name):