Problem
When a file record is being updated with new file URI the module is expiring the new location instead of the existing one.

Solution
As the file module is passing the original object to the hook_file_update just use it.
I can't think of possible cases where this can not be correct behavior.

CommentFileSizeAuthor
expire_existing_file_url.patch404 bytessimeonkesmev

Comments

SimeonKesmev created an issue.