justinsisley / mercenary

The force multiplier web app stack
3 stars 2 forks source link

Pre-compile email templates when running in production #28

Closed justinsisley closed 7 years ago

justinsisley commented 7 years ago

Don't make Node compile the email templates on every sendmail. Compile them to disk when the prod task is run, then read it from disk when needed.

Depending on the number and size of all of the email templates combined, you could keep them in memory, but it won't scale indefinitely.