Support-Forum

file_date and sha1_value not updating after replacing files on the server — any batch refresh method

Started by hamna9248, 22.11.2026 19:26:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hamna9248

Hi everyone,

I ran into the same issue described in the thread 'No update of file_date or sha1_value when files are modified'. After replacing a batch of files on the server over FTP, the check tool updates the md5 value but file_date and sha1_value stay at their old values, so the download pages still show the old date and my versioning/update checks fail.

Going through every download one by one to trigger a refresh is not practical when there are a few hundred entries. Has anyone found a reliable way to force jDownloads to recalculate file_date and sha1 for existing downloads in bulk, or know which table/column needs updating so the download metadata stays consistent?

Any tips would be really appreciated.

Thanks!
  •  

Arno

Hi,
we have corrected the scanner so that, when it detects a file change, it recalculates SHA1 and updates the file date. I'll send you a test version via PM. Please test it first with a few files whose contents you change again.

For entries already affected, one possible solution would be restoring a database backup from before the earlier scan updated their MD5 values, while keeping the replacement files. With the fix installed and file-change checking enabled, the scanner should then detect those changes again and refresh the metadata.

Do you have a suitable backup, and would you be able to try this on a copy of your site? Please back up your current site first: restoring an older database can remove newer entries or other changes.

Please also note that the file date will be set to the time of the new scan, not the original FTP replacement time.

Would this approach be possible for you?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •