From 150ec5b41a9ba52327642cd04b379646bf881168 Mon Sep 17 00:00:00 2001 From: fluffy Date: Sat, 30 Mar 2019 08:32:00 -0700 Subject: [PATCH] Properly expire file fingerprints as well as checksums --- publ/image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/publ/image.py b/publ/image.py index 6baf4683..61cbf938 100644 --- a/publ/image.py +++ b/publ/image.py @@ -815,7 +815,8 @@ def _fix_orientation(image): def _get_asset(file_path): """ Get the database record for an asset file """ record = model.Image.get(file_path=file_path) - fingerprint = utils.file_fingerprint(file_path) + fingerprint = ','.join((utils.file_fingerprint(file_path), + str(RENDITION_VERSION))) if not record or record.fingerprint != fingerprint: # Reindex the file logger.info("Updating image %s -> %s", file_path, fingerprint)