XF 2.0 File level command line image optimisation

Mouth

Well-known member
My understanding for XF1.5 is that if we directly (file level from shell) optimise the image files within data/attachments then it causes problems due to checksum being different between DB and file. Is this still the case for XF2? Eg. we cannot just run a system cron for image optimisation on files within XF.
 
It's not really the hash that we check per se -- that's really just a random string. What we do store is the size of the attachment. If you change files on disk, that length needs to be updated so that the correct headers can be output, we know how long the stream is, etc.

So any changes to the data in these files does need to be aware of the DB entries referencing them.
 
Top Bottom