Hi, I notice that we can’t use fragment cache in ActionMailer
’s email template. I am curious about the reason that Rails doesn’t implement this feature.
Is it because nobody needs this feature (actually I quite need it)? Or is because the cache implementation is coupled too deep with ActionController
and it’s hard to move it to AbstractController
whichActionMailer
uses?
There’s no structural opposition to this. I just think nobody has needed to send enough emails that template rendering was the bottleneck. Feel free to investigate and post a pull request if you get this working.
OK, I will try to work on this. Thanks for the reply.
DHH於 2015年12月28日星期一 UTC+8下午9時41分48秒寫道: