changeset 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 dcdec4b951a1
children 2b0fa2e4c12f
files piecrust/appconfig.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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.