# Email templates not updating

**URL:** <https://www.ruby-forum.com/t/email-templates-not-updating/173399>\
**Category:** Rails\
**Created:** [August 8, 2009, 12:46am UTC](https://www.ruby-forum.com/t/email-templates-not-updating/173399 "2009-08-08T00:46:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdeering](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Post date:** [August 8, 2009, 12:46am UTC](https://www.ruby-forum.com/t/email-templates-not-updating/173399/1 "2009-08-08T00:46:57Z")

</div>

I have a strange problem: I am using ActionMailer via ar\_mailer to mail  
out some multi-part email with templates and it’s working just fine.  
But, if I make a change to the templates, new email generated uses the  
old template. I’ve looked at all the moving parts and they seem to be in  
orderâ€”even tried restarting the httpd process thinking passenger wasn’t  
listening to the touch /tmp/restart.txt deal.

Does someone know if there’s some weird caching thing with mail  
templates? And, how to clear that cache out? Any clues on how to go  
about troubleshooting this further? TIA for any help.

I’m using Rails 2.2.3, production environment on a RHEL machine, apache

- passenger.

---

<div class="post-metadata">

**Author:** ![mdeering](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Post date:** [August 8, 2009, 1:06am UTC](https://www.ruby-forum.com/t/email-templates-not-updating/173399/2 "2009-08-08T01:06:29Z")

</div>

Boy, it sure helps to write (type) out your problem to think about it in  
a new way. Something about sending it down to your fingers, then back up  
to your brain sure helps.

After posting, I realized that I also had a custom daemon what was  
watching for emails ready to be sent at a certain time. That daemon was  
started during version \< current of my email template, and it was cached  
in that running process. Good to know, better to remember.

Restarting that daemon picked up the current version of the template and  
is happily sending emails. Nice as ice.
