Tom Lea
2009-May-01 00:10 UTC
Fix accidental caching of proc objects instead of the content it represents
Ticket: https://rails.lighthouseapp.com/projects/8994 Hi Core, after a production deploy, we noticed some images (delivered by send_file) stopped working, seemingly after a short period of activity. After some investigation we discovered the cache (page_cache) for these images was being populated with the following string: #<Proc:0x01a10f80@./test/../lib/action_controller/streaming.rb:91> This caused many headaches, and we eventually deployed a fix that simply set :stream => false on the call. The fact that this was surprising, motivated me to write the patch attached to the ticket. Have a look, let me know what you think. Thanks - Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---