I am building my own torrent site and after doing some research I have noticed that a lot of the sites out there including these two:
http://torrentz.eu
http://bitsnoop.com
Most of the pages are static and are not dynamically generated on the fly (as the pages end in .html). Thinking about it, it makes sense to me, as the site would load a lot faster rather than having to go to the database every time the page is loaded by a user.
Would I be correct in assuming the following?
The pages are static.
The pages are updated frequently.
The pages are generated automatically by a programming language like PHP or any other.
Is the reason for doing this to relieve pressure from the database (which must be very large ) and to make the site load faster for its users?
Take these examples below:
http://torrentz.eu/8ac3731ad4b039c05393b5404afa6e7397810b41
http://bitsnoop.com/ubuntu-12-04-lts-i686-precise-pango-q36920828.html
I guess the pages must be static, as the hash isn't put in a GET variable, but it rather points to a specific page. You will notice also there are dynamic elements on the page, such as recent searches (right at the bottom) and available comments.
If what I'm thinking is correct. then how does the website(s) handle updating the page for comments? Does it mean that the page has to be updated as a whole everytime someone posts a comment?
File extensions like .html or .php aren't a reliable indicator that they are static pages. It's common practice to use Apache's mod_rewrite (or equivilent) functionality to give dynamic URL's a more user-friendly appearance.
With large sites like torrentz and bitsnoop, it may also be possible (if not extremely likely) that they are serving static pages - though these static pages will be part of a frequently updated cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With