Forum Moderators: coopster
Lets assume we have a site (50% of it is static pages, 50% of it are php generated pages) of around 300k pages in total (static and php generated).
The site has the following general structure: www.example.com/folder1/folder2/folder3/.....
(we use mod_rewritte in our php files to create frieldly urls and keep the same site structure)
Our question (regarding server load) is this:
is it worth it to use php to create static pages?
using a manual button in our cp or a crontab job, we can easily create many hundrets of pages.
We are thinking to do this in the indexes of the first 2-3 levels, in our example: folder1/index.htm, folder2/index.htm and folder3/index.htm, since these pages get the most hits per day.
Is this method efficient to reduce our server load?
We have no major complains from our user - but i cant trust their feedback 100%.
During most of the year we have no problems.. but from May till end of August we have many hundrents thousants visitors per day, mostly on our dynamic content pages, thus increasing our needs during those months.
I have optimized my queries as much as i can/know.
I have created indexes in my tables.
(i even split my tables into multiple databases).
For the next part, I thought of creating static content for those pages - and by the use of crontab to update them every couple of day or once per week.
An you say its a good soution solution. Nice knowing that.
And as an extra question.. what more can i do besides what i have mentioned already?
as long as the content of those pages isn't changing too often (the definition of too often is very subjective) then generating static content is probably your best bet.
I also hope it isn't a "i need to have an answer for every request" scenario
you manage it like anything else, whatever you use to create the whole needs to understand how the whole is supposed to be constructed and manage additions and removals accordingly
who deletes pages anyway, that's good traffic on those old pages ;)
The 5% of the indexes that changes is based mostly on latest reviews/articles/blogs/image gallerys, or some counters we have (for example "this aspect has 5 reviews", with 5 being a variable based on feedback we get from customers/visitors
thanks guys for the insight/info.