 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 4175 Location: Hamburg / Germany
|
Posted: Mon Jun 18, 2012 7:50 pm Post subject: |
|
|
Did you delete all existing compiled and cache files after the update?
Old files might not be compatible because of internal changes. |
|
| Back to top |
|
jonyo Smarty Rookie
Joined: 14 Feb 2011 Posts: 16
|
Posted: Fri Jun 22, 2012 3:43 am Post subject: |
|
|
| ikund wrote: | Hi,
I'm getting the same exceptions on another high-traffic site. Exceptions pop up even if nobody is updating any templates, the timestamp for cache files is not updated (which would normally cause the recompile). The problem involves (mostly) templates that are used more (banner boxes etc).
However, I am not using getTags. Any ideas? Oh and the exceptions started appearing after Smarty upgrade from 3.1.5 to 3.1.10.
Thanks, I would really appreciate help with this matter. |
This sounds like it may be the scenario I came up with in my last post, where multiple page loads are trying to re-compile the same template at same time because the existing compiled template is using older version of smarty... If that is the case then deleting all of templates_c would fix it, since the scenario requires that an existing compiled template needs to be re-compiled. If you clear the templates_c folder that will clear out all the old compiled templates, and the problem should not be possible when it is writing the templates "fresh" instead of "replacing".
If you delete the compiled templates and still get the problem, there is something in Smarty that is causing it to think it needs to re-compile the template each time. In my case that was caused by using getTags() if you aren't doing that not sure what else it could be. |
|
| 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
|