Re: [PHP] PHP+MySQL website cache ? Yes/No
- From: mzvarik@xxxxxxxxx (Martin Zvarík)
- Date: Sun, 25 Feb 2007 12:06:04 +0100
I know it does, but I think it is still faster to include a generated HTML file than query a database. But is it worth the miliseconds?
---
Peter Lauri napsal(a):
MySQL has caching functions I believe. Read here:.
http://dev.mysql.com/doc/refman/5.0/en/query-cache.html
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-----Original Message-----
From: Martin Zvarík [mailto:mzvarik@xxxxxxxxx] Sent: Sunday, February 25, 2007 12:50 PM
To: php-general@xxxxxxxxxxxxx
Subject: [PHP] PHP+MySQL website cache ? Yes/No
Hi,
I am making an eshop and I am thinking about caching system.
You understand, that it cannot be entirely cached because visitor has it's own shopping cart etc.
So, my thought is to cache only few blocks like "Categories", "Navigation menu" etc. by storing it to an HTML file.
The advantages are that it doesn't have to query database and generate the HTML code again, but my question is: Is it good approach? Shouldn't we optimize database instead of restoring the data on harddrive?
Thank you for ideas,
Martin Zvarik
- Follow-Ups:
- Re: [PHP] PHP+MySQL website cache ? Yes/No
- From: "Richard Lynch"
- Re: [PHP] PHP+MySQL website cache ? Yes/No
- References:
- RE: [PHP] PHP+MySQL website cache ? Yes/No
- From: "Peter Lauri"
- RE: [PHP] PHP+MySQL website cache ? Yes/No
- Prev by Date: RE: [PHP] PHP+MySQL website cache ? Yes/No
- Next by Date: RE: [PHP] PHP+MySQL website cache ? Yes/No
- Previous by thread: RE: [PHP] PHP+MySQL website cache ? Yes/No
- Next by thread: Re: [PHP] PHP+MySQL website cache ? Yes/No
- Index(es):
Relevant Pages
|