Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

[Bug] using Smarty_Data forces caching

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
eposjk
Smarty Rookie


Joined: 07 Oct 2009
Posts: 13

PostPosted: Fri Oct 09, 2009 7:35 pm    Post subject: [Bug] using Smarty_Data forces caching Reply with quote

Hi!

I discovered a strange behaviour:

When I call $smarty->fetch('my.tpl', $data) multiple times with a different data object, it always returns the results of the first call.

$smarty->caching is false.

When I use $smarty instead of $data, no caching is performed.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Fri Oct 09, 2009 8:53 pm    Post subject: Reply with quote

This is bug. It is not related to caching, but reuse of the template Object when the same template gets called several times. Can't fix it before sunday As i am currently travelling.
Back to top
View user's profile Send private message
eposjk
Smarty Rookie


Joined: 07 Oct 2009
Posts: 13

PostPosted: Fri Oct 09, 2009 8:55 pm    Post subject: Reply with quote

no problem & thanks - enjoy your journey!
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Sun Oct 11, 2009 8:25 pm    Post subject: Reply with quote

This should now be fixed with the latest update SVN.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP