You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||9 months ago|
|README.md||9 months ago|
|bump-versions.js||9 months ago|
|cf-purge.js||9 months ago|
|clean-up.js||9 months ago|
|delete-expired.js||9 months ago|
|rebuild-hashes.js||9 months ago|
|thumbs.js||9 months ago|
$ yarn cf-purge $ node ./scripts/cf-purge.js Purge Cloudflare's cache. Usage: node scripts/cf-purge.js ...filename filename: Upload names separated by space (will automatically include their thumbs if available).
$ yarn clean-up -h $ node ./scripts/clean-up.js -h Clean up files that are not in the database. Usage: node scripts/clean-up.js [mode=0|1|2] mode: 0 = Only list names of files that are not in the database. 1 = Clean up the files.
$ yarn delete-expired -h $ node ./scripts/delete-expired.js -h Bulk delete expired files. Usage: node scripts/delete-expired.js [mode=0|1|2] mode: 0 = Only list names of the expired files. 1 = Delete expired files (output file names). 2 = Delete expired files (no output).
$ yarn rebuild-hashes -h $ node ./scripts/rebuild-hashes.js -h Rebuild file hashes. Usage: node scripts/rebuild-hashes.js <mode=0|1|2> mode: 0 = Dry run (recalculate hashes, print them, but do NOT store to DB). 1 = Recalculate hashes and store to DB. 2 = Verbose (recalculate hashes, print them, and store to DB).