Re: Caching db search results.
| From: | Monte Ohrt | Date: | Fri, 07 Dec 2001 15:48:13 +0000 |
| Subject: | Re: Caching db search results. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2199@lists.php.net to get a copy of this message | ||
if your URL is unique for each page, you can use that ($PHP_INFO) as
your cache_id when you display() the page.
Bertrand DUNOGIER wrote:
>
> Hello,
>
> I've got a script used to search in a movie database, with 7 tables,
> and over 1800 records in the main table. When a query is built from
> several parameter, I store it in a queries table if it has not been
> made before, or increment a counter for statistics purpose. Since i'm
> using a next page / first page interface on the search result, i just
> need to add a query=idquery parameter in the URL to run the same query
> again, the SQL query being get in the queries table.
>
> Is there a way i can check if a specific result page (like page 3 for
> query 15) has already been cached, and use that cached version,
> instead of running the query again ?
>
> Hope it is clear enough... if you want to see what it looks like, have
> a look at http://bdunogier.nexenservices.com/anime/
>
> --
> Best regards,
> Bertrand mailto:bdunogier@wanadoo.fr
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/×%U´
> DüÔýygLä(n
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/