Question in regarding server resource consumption
Posted: Mon Jan 17, 2005 11:06 pm
I have a question in regrading to server resource consumption. Assume I have a Webpage that has quite large daily traffic, say around 20,000 visits per day. The content of this Webpage is stored in a MySQL database and updated every 15 minutes. Which one of following ways consume less server rescource (CPU time, memory usage etc.)?
* use PHP to generate a static page(a HTML file) and re-generate this page every 15 mintues when database is updated. So, basically, all the visits will load the sataic HTML page.
* use PHP, make this Webpage dynamic. So every visit will execute the PHP script.
I am not sure if I have explained my concerns clearly or not. Hopefully, yes~ and thanks for any suggestion and help in advance.
* use PHP to generate a static page(a HTML file) and re-generate this page every 15 mintues when database is updated. So, basically, all the visits will load the sataic HTML page.
* use PHP, make this Webpage dynamic. So every visit will execute the PHP script.
I am not sure if I have explained my concerns clearly or not. Hopefully, yes~ and thanks for any suggestion and help in advance.