 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
g00fy Smarty Rookie
Joined: 07 Dec 2005 Posts: 19
|
Posted: Sat Feb 27, 2010 11:47 am Post subject: difference between compile and cache? |
|
|
What is exactly the difference between compiling and caching?
Thanks |
|
| Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 4186 Location: Hamburg / Germany
|
Posted: Sat Feb 27, 2010 12:10 pm Post subject: |
|
|
The template source is being compiled into PHP code. Normally this is done automatically once each time after the template was modified unless you disable automatic compiling with compile_check = false (can be used increase speed, when the templates are stable) or force_compile = true which will force compiling each time the page is called.
The compiled template does render the final HTML output which gets displayed. If you enable caching the HTML output gets cached and is used for output until the cache_lifetime expires. |
|
| 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
|