This CRON job will run everyday at 4am and will perform the following tasks:
Delete any image that is in the "uploads" folder but has no reference in the database.
Delete any image that has a URL different to the current application's address, so images that are now hosted elsewhere will be deleted from the uploads folder.
Additional changes:
Jest now creates a folder called "test-uploads" where any tests that upload a file will store their files, this will then be deleted with Jest's teardown script.
This CRON job will run everyday at 4am and will perform the following tasks:
Additional changes: