 
 generateThumb = (fname, hash, cb) ->
     # Create the cache folder if it doesn't exist yet
+    if fs.existsSync path.join('release', settings.deployDir, 'cache', "th_#{hash}.jpg")
+        console.log "Thumbnail for #{fname} already exists, skipping..."
+        return cb()
+
     fs.mkdir path.join('release', settings.deployDir, 'cache'), (err) ->
         if err?
             return cb err if err.code != 'EEXIST'

                    _.contains changed, fname

                getFileHashes changed, (err, hashes) ->
                    # Add the new files' hash-file relations in, completing the current relation sheet
                    current = _.merge current, hashes



                    updateDatabase current, (err) ->
                        success !err?
