Re:RE: Please help on caching
| From: | Thomas Pundt | Date: | Thu, 27 Dec 2001 16:01:47 +0000 |
| Subject: | Re:RE: Please help on caching | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2391@lists.php.net to get a copy of this message | ||
Hi,
On 27-Dec-01 Brian E. Lozier wrote:
| Doesn't smarty do this step for you automatically? Meaning, it caches the
| output for you regardless of this
| line? Because I don't have this in any of my code (except when I was
| testing) and it still shows the cached output.
yes, but without this line needless computation is done (means: all computation
in between "is_cached() { ... }" doesn't get outputed, because the cached
version is used).
| ----- Original Message -----
| From: Monte Ohrt <monte@ispi.net>
| To: smarty@lists.ispi.net
| Date: 12/27/01 6:24:19 AM
|
| >You would want that the other way around btw...
| >
| >if !$smarty->is_cached('main.tpl', $HTTP_GET_VARS['catid'])
| >{
| > // database calls
| >}
--
Thomas Pundt -------------------------- http://rp-online.de/
-----------------
RP-Online Verlagsgesellschaft mbH | pundt@rp-online.de
Blumenstrasse 28, D-40212 Duesseldorf | Schlossstrasse 42, D-40477 Duesseldorf