Are older ActionMailer templates cached?

We run the Rails 3.0.7 application with a stand-alone standalone phone + nginx and with ruby ​​1.9.2-p290, and we see the strangest thing: after deploying some updates in the mailing template, new letters coming from the application sometimes apply updates, and sometimes the old template is used.

I can’t find anything about the cached ActiomMailer templates on the network, and running rake tmp:cache:clear does not affect the problem either, fwiw.

Has anyone ever experienced this? Is there a final solution to this problem?

thanks,

Jacob

+7
source share
2 answers

I encountered similar situations in our application and we use Resque.

If I change anything about email programs (which Resque workers are facing), I need to restart the workers.

Kill the workers and revive them, it seems that some of them can load the old environment, while others do not.

0
source

I had this problem too, although I did not use Resque to send mail. After looking at the infringing templates for a while, I realized that some of my inline CSS was incorrectly formatted (incorrect font and add-on declarations) and that the template might have ignored everything else next to these declarations. As a result, it looked like it was pulling old patterns, rather than creating new rules. Not sure if this is documented somewhere.

So basically, I was lazy, and it cost me a few hours of the day.

0
source

All Articles