|
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 |
hexabit Smarty n00b
Joined: 03 Oct 2009 Posts: 2
|
Posted: Mon Jan 25, 2010 1:57 pm Post subject: noob question - Compile or / and Cache ? |
|
|
Hi,
What is the difference between compile and cache directories (and files in them)
- what is the purpose of each of them and how should I use them on development
server and production server - also what options are to control smarty cache/compile
behavior ?
--
hexabit |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
Posted: Mon Jan 25, 2010 4:47 pm Post subject: Re: noob question - Compile or / and Cache ? |
|
|
hexabit wrote: | Hi,
What is the difference between compile and cache directories (and files in them)
- what is the purpose of each of them and how should I use them on development
server and production server - also what options are to control smarty cache/compile
behavior ?
--
hexabit |
http://www.smarty.net/faq.php#21
"Smarty also compiles the templates into PHP scripts, eliminating the need to parse the templates on every invocation, making Smarty extremely scalable and manageable for large application needs."
Compiled templates go in the cache dir.
http://www.smarty.net/faq.php#21
http://www.smarty.net/manual/en/caching.php
cached files go in the cache dir. |
|
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
|