sul-dlss / exhibits

Stanford University Libraries online exhibits showcase
https://exhibits.stanford.edu
Other
19 stars 7 forks source link

Periodically clean out carrierwave's tmp directory #1133

Open jkeck opened 6 years ago

jkeck commented 6 years ago

See https://github.com/carrierwaveuploader/carrierwave/wiki/how-to:-delete-cache-garbage-directories for patterns and considerations.

We received an alert about disk space at one point about this. This will probably be as big of a problem moving forward since we're not making different versions, but will want to address it eventually. I cleared this out manually once but the code in the doc above didn't work exactly as documented.

(may be obsolete if we move to rails 5.2's ActiveStorage)

corylown commented 2 months ago

Could be worth someone taking a look at this, but doesn't seem like a high priority if it's not been enough of a problem for us to fix it over the past 6 years.