I am also a php programmer. I always wondered how do Facebook pages load so fast with so many users connecting to them at any instance. My site never reached such speed even when the traffic was less. What do they do so very well for their sites?
What should i take care of even if i want to make a website even half the speed of Facebook. I am referring to php and mysql and jquery websites.
Take a look at this reddit post by someone who interned at Facebook:
http://www.reddit.com/r/programming/comments/nav19/facebook_releases_hhvm_60_percent_faster_than_its/c37pitt
Most relevant parts of the post: