...
https://github.com/rrthomas/pdfjam
Uncaching on-demand derivatives
If you’re trying different PDF generation techniques, you want to get the app to create PDFs with the new one – but the built-in caching of already created PDF will interfere with this.
Here’s one way to force uncache on heroku, replace with desired friendlier_id of work:
Code Block |
---|
heroku run bundle exec rails runner "OnDemandDerivative.where(work_id: Work.find_by_friendlier_id('qf85nc451').id).destroy_all" |