Re: [SMARTY] cache+dynamic site - i don't get it...

From: Date: Thu, 02 May 2002 07:01:40 +0000
Subject: Re: [SMARTY] cache+dynamic site - i don't get it...
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3974@lists.php.net to get a copy of this message
At 23:40 01/05/2002 -0700, Mitchell Vincent wrote:
Am I misunderstanding what you mean by "cached"? I've heard the PHP forms of the Smarty templates referred to as both "compiled" and "cached" so it's confusing sometimes :-)
Hello Raw explanation :) Compiled : bad world but describes pretty well what happens. The *.tpl file is/are evaluated, variable replacement is done etc.. the result is a PHP file to be executed by the PHP engine (so the result is dynamic) Cached : the same thing happen (variable replacement and so on) but the result is a HTML file (even if its named PHP) and when called is NOT executed by the PHP engine (so the result is static) Example : Some data must be fetched from a database : compiled (standard) : when the visitor call the url the resulting PHP page makes all database call and the page is dynamically generated cached : when the visitor calls the url, the cached static page is sent so no database call are executed Luc

« previous php.smarty.general (#3974) next »