Caching db search results.

From: Date: Fri, 07 Dec 2001 13:07:11 +0000
Subject: Caching db search results.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2190@lists.php.net to get a copy of this message
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

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