Speeding up the forum to the next level : CDN for visitors

TransAmDan

Forum Admin
Staff member
Okay we have a super whizzy server, but it still needs to fetch data from a database to compile the page. The majority are visits(from non members) to the website, and these are to pages that don't change daily. We have in place a content delivery network for images, css and javascript. This is working very well.

Of course serving web pages from this content delivery network wouldn't be ideal. Unless we set the caching to be 1 day, this cache is set to 1 month on images at present, as they don't change to change once uploaded, however HTML pages change often, certainly forum ones.

So what I will do, is if the user is not logged in, it will serve pages from the CDN which will probably be ww2.solent-renegades.co.uk, else serve pages from Solent Renegades Car Club

This wont give any speed increase for people who have logged in, but certainly for people who are just visiting, or viewing the photo galleries, the pages will load a lot faster. Currently the HTML file takes around 800ms, thats 786ms to generate and 4ms to send to your browser. However this can be sped up to 54ms, thats 35ms to generate the file and 18ms to download. So this is more than 10 times faster. Once the HTML file has been downloaded it is processed by the browser to fetch the other files to make the page, like images, css, and javascript. So the sooner the HTML file is downloaded, the sooner the rest can start.

I will tackle this one over the weekend. :)
 
Back
Top