|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jaykirby Smarty n00b
Joined: 24 Jul 2018 Posts: 2
|
Posted: Tue Jul 24, 2018 4:57 am Post subject: Nocache tags printing code |
|
|
We are moving our site to a new server with a newer version of smarty 3.1.32 and am getting code inserted in the page anywhere I use {nocache} tags.
So a template like this:
Code: | <p>{nocache}{$smarty.now|date_format:'%B %e, %Y'}{/nocache}</p> |
renders this:
Code: | /*%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<?php $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/usr/local/lib/php/smarty-3.1.32/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>/*/%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<p>/*%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/<?php echo smarty_modifier_date_format(time(),'%B %e, %Y');?>
/*/%%SmartyNocache:13980429775b56ae4aaf42b9_35789719%%*/</p> |
All the other templates seem to work fine. Any suggestions? |
|
Back to top |
|
jaykirby Smarty n00b
Joined: 24 Jul 2018 Posts: 2
|
Posted: Tue Jul 24, 2018 5:22 am Post subject: Nocache tags printing code |
|
|
Consider this resolved: The code in the page disappeared when I resolved some other errors within the page that was likely preventing some kind of flush from happening. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|