Thanks very much for the contribution (as always!)!
Clearing out all unused media files is indeed what we should be doing!
I'll need to check whether there's any risk of undesired removal of files elsewhere due to undefined variables (I think not, but best to be sure) (maybe it's best to just remove all files in the media directory, rather than do (the equivalent of) rm -r media/, to limit the potential damage scope, just in case we modify something elsewhere?) and whether there's a performance slow down (almost certainly not, since we're simply copying everything anyway in the next step). (In a couple of days, since I won't have time in the immediate future.)
Thanks very much for the contribution (as always!)!
Clearing out all unused media files is indeed what we should be doing!
I'll need to check whether there's any risk of undesired removal of files elsewhere due to undefined variables (I think not, but best to be sure) (maybe it's best to just remove all files in the media directory, rather than do (the equivalent of)
rm -r media/
, to limit the potential damage scope, just in case we modify something elsewhere?) and whether there's a performance slow down (almost certainly not, since we're simply copying everything anyway in the next step). (In a couple of days, since I won't have time in the immediate future.)