RE: [SMARTY] Cache result from db-query?

From: Date: Tue, 04 Mar 2003 13:38:54 +0000
Subject: RE: [SMARTY] Cache result from db-query?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8384@lists.php.net to get a copy of this message
I am not used to caching & smarty, but I think it's impossible to cache database queries with smarty. The only thing that smarty (should?) cache is output of 'data'. So I think it's only possible to cache a parsed template (or parts of it), so next time, smarty does not have to re-loop the whole datastructures again. However, I could be wrong! You may want to look to the 'insert' function, in order to cache parts of a template (and not the whole template itself). Peter -----Original Message----- From: Eskil Keskikangas [mailto:eskil@funplanet.com] Sent: dinsdag 4 maart 2003 14:32 To: smarty-general@lists.php.net Subject: [SMARTY] Cache result from db-query? Hi, I want to cache a small part of my output. It's a toplist from a mysql-db that results in a slow query. But I don't understand how to do this. If I enable cache won't all output get cached then? Give me a hint please. :) BG Eskil -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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