Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Cache the previous page?
Re: Re: Cache the previous page?
> >I have a routine that displays 60 items (with thumbnails) per
> >You can click any item and displays a new page with item details.
> >the user back pages it runs the query again to display all the
> >Is there a way to cache that page and images so that second query
> >doesnít execute?
> In cases like this, I store an array of the resultant ids in the
> session, then run you just need to run a much easier query to pull
> the data for a page redisplay.
Bill, donít complicate life, it is too short.
You mentioned you are worred about the query and its performance. If
you are using mysql, then your query is already cached! So you donít
have to implement anything extra. Here, wasnít that easy?
http://www.dbForumz.com / This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Cache-previous-page-ftopict139443.html
Visit Topic URL to contact author (reg. req'd). Report abuse: