Do not create smarty cached templates for processed greetings
authoreileen <emcnaughton@wikimedia.org>
Tue, 10 Mar 2020 03:39:35 +0000 (16:39 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 17 Mar 2020 00:58:06 +0000 (13:58 +1300)
commitab46cf185997025fa2363405ec7e347dbe51fff1
treebaf65889b6698f6e20b47fc04b6bd1c47532311f
parentc21afdf769a2dec4e6539ce9a1fdebd404dab247
Do not create smarty cached templates for processed greetings

Currrently whenever a greeting is parsed through smarty a smarty template file is stored to disk. This has
impacts on disk use, cache clearing time and performance. Where we know that the template will be of low value
we are better not to cache it. Smarty provides eval (not that eval) for this

The technical details are in the code comment block
CRM/Contact/BAO/Contact/Utils.php
CRM/Utils/String.php