jstorimer / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.

Home Page:https://github.com/jrgifford/delayed_paperclip/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regenerate a cache after processing of an image

alexcp opened this issue · comments

I couldn't find a good way to regenerate a cache when an image as been process.

What I wanted to do seems quite simple, I wanted to show the original image while it is being process in the background.

But the problem is that when the image is resized, the original keep showing up in the cache.

I wrote this hack to do it, but it's really ugly, I am sure we can find a better way to do it.