Results 1 to 3 of 3
Apr 4, 2013, 12:59 #1
- Join Date
- Sep 2004
- Provo, UT
- 1 Post(s)
- 0 Thread(s)
Efficient to call file_get_contents over and over again?
I store all outgoing emails in a database. A cron wakes up every 30 minutes to send out the next batch of emails. Up until now each of the 15 different types of email were all plain text, but I plan on moving to html based templates. Would it be more efficient to call all 15 email templates at once, even though not all of them may get used in a particular run? Or would it be more efficient to call the templates as needed in my DO WHILE loop even if that means calling certain templates over and over? Does this make sense?
$importedBody = file_get_contents('emailTemplates/hero.html');
Thanks!Convert your dollars into silver coins. www.convert2silver.com