afeld / magickly

image manipulation as a (plugin-able) service
http://magickly.afeld.me
MIT License
180 stars 35 forks source link

Add Rack::Cache with filesystem-based storage when running as an app #24

Closed jcn closed 11 years ago

jcn commented 11 years ago

Should close #21

afeld commented 11 years ago

Do you have a Heroku instance you can deploy this to? Just to verify it works there. Or I can set up a new one at some point to test it.

jcn commented 11 years ago

Yup, I added it at http://magickly-cedar.herokuapp.com/ and added you as a user on the app so you can watch the logs. You can also watch the headers that get served: X-Rack-Cache will have the cache status. "miss, store" means that it's stored the cached file, and "fresh" means that it's still a valid cache file and is being served from disk.