Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use WP SuperCache and W3 TotalCache to optimize the speed of my Wordpress website by caching. That really helps! But lately I have been building a website myself, basically from scratch. Is there any opensource program/code/api out there which can help me optimize (the speed of) this non-WP website (by caching) or so?


migrated from stackoverflow.com Jan 8 '12 at 3:45

This question came from our site for professional and enthusiast programmers.

locked by Stephen Ostermiller Aug 12 '15 at 19:37

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

Building the website how? PHP? Is there a database? Do you know what part is slow? – Thilo Jan 6 '12 at 4:36
Yes, using HTML/PHP only, and MySQL database. Honestly I don't know what part is slow. – Gerben Jan 6 '12 at 7:06
up vote 2 down vote accepted

Well Website speed is not entirely dependents upon the cache only, this is one aspect and there are lot of other factors which needs to be taken care of.

memcached is one of the popular distributed memory object caching system.Beside there are lots of other heck like the number of database hots your site requires , how you portal asking browser to do caching for it.

Yahoo has published a good Blog about generic methods which should be taken care while optimizing your website for speed.

Best Practices for Speeding Up Your Web Site

Beside this one of the core area of optimization is always your DB and application interaction with it.


memcached is extremely popular, but that only provides a key-value store in memory. It's a good starting point, and one you could use entirely on your own if you were so inclined.

The extra effort of adding proper HTML cache control tags and everything else depends largely on the environment. Tools such as Rack::Cache can help you manage the headers on your resources.


When building websites, there are multiple aspects that will affect the perceived speed of the website.

Some best practices you need to follow are available from Yahoo and Google:

Other aspects depend on the architecture of your application, wih or without a database, static content or different content per user, and myriad other things that might have their own best practices for better performance.


Not the answer you're looking for? Browse other questions tagged or ask your own question.