X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=f9a51c0cb6e0006883b0a6450a1e28d0fe1bf620;hp=7838ec88620947b87d2cc7c6bb17e64386358bf7;hb=f4d28601c0ea91db9a9ab7365be4faccfd4147f0;hpb=19b197c32c96ce8eea26561fb7b40e87c57716ae diff --git a/inc/functions.php b/inc/functions.php index 7838ec8862..f9a51c0cb6 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3876,11 +3876,16 @@ function generateMetaDescriptionCode () { } // Generates an FQFN for template cache from the given template name -function generateCacheFqfn ($template) { +function generateCacheFqfn ($template, $mode = 'html') { // Is this cached? if (!isset($GLOBALS['template_cache_fqfn'][$template])) { // Generate the FQFN - $GLOBALS['template_cache_fqfn'][$template] = sprintf("%s_compiled/html/%s.tpl.cache", getConfig('CACHE_PATH'), $template); + $GLOBALS['template_cache_fqfn'][$template] = sprintf( + "%s_compiled/%s/%s.tpl.cache", + getConfig('CACHE_PATH'), + $mode, + $template + ); } // END - if // Return it