|
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 |
koper Smarty n00b
Joined: 02 Feb 2016 Posts: 2
|
Posted: Tue Feb 02, 2016 1:13 am Post subject: The smarty always loads the old version of .tpl file |
|
|
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 |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Feb 02, 2016 1:14 am Post subject: |
|
|
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 |
|
koper Smarty n00b
Joined: 02 Feb 2016 Posts: 2
|
Posted: Tue Feb 02, 2016 1:15 am Post subject: |
|
|
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 |
|
|
|
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
|