diff piecrust/appconfig.py @ 887:c0cbcd4752f0

internal: Include the number of fixup callback in the cache key.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 20 Jun 2017 21:14:41 -0700
parents 08e02c2a2a1a
children 6c445771a8dc
line wrap: on
line diff
--- a/piecrust/appconfig.py	Tue Jun 20 21:13:08 2017 -0700
+++ b/piecrust/appconfig.py	Tue Jun 20 21:14:41 2017 -0700
@@ -102,6 +102,8 @@
                 APP_VERSION, CACHE_VERSION)).encode('utf8'))
         for p in paths:
             cache_key_hash.update(("&path=%s" % p).encode('utf8'))
+        cache_key_hash.update(
+            ("&fixups=%d" % len(self._post_fixups)).encode('utf8'))
         cache_key = cache_key_hash.hexdigest()
 
         # Check the cache for a valid version.