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

How To Force a Recompile

 
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 -> General
View previous topic :: View next topic  
Author Message
BeastRider
Smarty n00b


Joined: 31 Aug 2003
Posts: 1

PostPosted: Sun Aug 31, 2003 12:27 am    Post subject: How To Force a Recompile Reply with quote

I am running the tikiwiki CMS (good poo!), which uses smarty.

I have changed a template and although I read here that recompilation into templates_c is automatic, I am not gettin an auto recomp.

Them I read where auto compilation can be turned off to speed performance... so maybe that is the case.

So

a) how do I compile the changed template?
b) where do I find the params that control auto recomilation?

Thanks

Wayne
Back to top
View user's profile Send private message
Nick W
Smarty Rookie


Joined: 23 May 2003
Posts: 22

PostPosted: Tue Sep 02, 2003 12:59 pm    Post subject: Reply with quote

Maybe calling clear_all_cache() would help? - Or you could just delete all the files in templates_c/ I guess?

Nick
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue Sep 02, 2003 1:15 pm    Post subject: Reply with quote

you can use
http://smarty.php.net/manual/en/variable.force.compile.php
or
http://smarty.php.net/manual/en/api.clear.compiled.tpl.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wvdploeg
Smarty Rookie


Joined: 05 Aug 2003
Posts: 19

PostPosted: Tue Sep 02, 2003 5:27 pm    Post subject: Re: How To Force a Recompile Reply with quote

BeastRider wrote:
I am running the tikiwiki CMS (good poo!), which uses smarty.

I have changed a template and although I read here that recompilation into templates_c is automatic, I am not gettin an auto recomp.

Them I read where auto compilation can be turned off to speed performance... so maybe that is the case.

So

a) how do I compile the changed template?
b) where do I find the params that control auto recomilation?

Thanks

Wayne


If you change a template in Tiki sometimes (do not ask me when and when not) you need explicitely clear the cache by clickingthe 'clear cache' in the admin->modules module. But this is not a Smarty but a Tiki issue I guess.

Using the functions mentioned above also work (clicking 'clear cache' actually calls clear_all_cache()), but then you would have to implement the procedures somewhere in Tiki (and since it's already done, why reinvent the wheel ???).[/i]
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 -> General 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