Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

The smarty always loads the old version of .tpl file

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
koper
Smarty n00b


Joined: 02 Feb 2016
Posts: 2

PostPosted: Tue Feb 02, 2016 1:13 am    Post subject: The smarty always loads the old version of .tpl file Reply with quote

I have changed the content of smarty file (.tpl)
but it has never changed when I run in browser.

But the compiled files (.tmp) in folder template_c
have also be changed. It is so strange!!!!!

It takes effect when I delete the template as the browser cannot display anything <-- it is more strange : if smarty does not read my .tpl file, why and how it takes effect after I delete the .tpl file?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Feb 02, 2016 1:14 am    Post subject: Reply with quote

You should both clear the template AND cache files, whne you replace the template.
(And of course make sure you're replacing and clearing the right files… thugh that goes without a question.)
Back to top
View user's profile Send private message
koper
Smarty n00b


Joined: 02 Feb 2016
Posts: 2

PostPosted: Tue Feb 02, 2016 1:15 am    Post subject: Reply with quote

Thanks!!
do you mean I should delete all the .tmp files in template_c?

Moreover, there is no any file in cache folder.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development 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