Related / Friend Blogs
Top Poster
#1 ramon fincken 113
#2 Site admin 2
#3 Ber|Art 1
#4 Jan 0
#5 roger beckers 0
[solution] Force Smarty to recompile your template upon every visitor



Rating : 3 / 5

Tags:

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> PHP coding
View previous topic :: View next topic  
Author Message
ramon fincken
Site's programmer


Joined: 03 Aug 2007
Posts: 113
Location: Amsterdam, the Netherlands/Europe

PostPosted: Fri Nov 14, 2008 3:55 pm    Post subject: [solution] Force Smarty to recompile your template upon every visitor Reply with quote

You know the feeling, just when you are testing, the darn thing won't simply see that the template file has changed and serves you the cached version.

Here is the solution:
Code:
$smarty->force_compile = true;


So you'll end up with something like:
Code:
require './smarty/Smarty.class.php';
$smarty = new Smarty;
$smarty->force_compile = true;
Back to top
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: Fri Nov 14, 2008 3:55 pm    Post subject: [solution] Force Smarty to recompile your template upon every visitor

Advertisement
Back to top
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> PHP coding 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
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [2]
No but I love polls ! [0]