Skip to content

Commit

Permalink
Properly expire file fingerprints as well as checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffy-critter committed Mar 30, 2019
1 parent 59e8aa3 commit 150ec5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion publ/image.py
Expand Up @@ -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)
Expand Down

0 comments on commit 150ec5b

Please sign in to comment.