bradphelan / openkitchen

rails backend for gobbq
Other
2 stars 0 forks source link

Create some clever caching for image URL's #18

Closed bradphelan closed 12 years ago

bradphelan commented 12 years ago

Currently we generate a new signed URL for every image on every request. This is inefficient. We should generate URI's that expire on S3 in 6 hours and place those URI's in redis or something and have them expire in 5.5 hours ( just to be safe ) This means that most of the time we will be returning the same URI until change over is required.

bradphelan commented 12 years ago

See answer at

http://stackoverflow.com/a/9616131/158285