Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I second Ken's rec of PEAR's <a href="http://pear.php.net/package/Cache_Lite" rel="noreferrer">Cache_Lite</a> library, you can use it to easily cache either parts of pages or entire pages.</p> <p>If you're running your own server(s), I'd strongly recommend <a href="http://www.danga.com/memcached/" rel="noreferrer">memcached</a> instead. It's much faster since it runs entirely in memory and is used extensively by a lot of high-volume sites. It's a very easy, stable, trouble-free daemon to run. In terms of your PHP code, you'd use it much the same way as Cache_Lite, to cache various page sections or full pages (or other arbitrary blobs of data), and it's very easy to use since PHP has a <a href="http://www.php.net/manual/en/intro.memcache.php" rel="noreferrer">memcache interface built in</a>.</p> <p>For super high-traffic full-page caching, take a look at doing <a href="http://varnish.projects.linpro.no/" rel="noreferrer">Varnish</a> or <a href="http://www.squid-cache.org/" rel="noreferrer">Squid</a> as a caching reverse proxy server. (Pages that get served by Varnish are going to come out easily 100x faster than anything that hits the PHP interpreter.)</p> <p>Keep in mind with caching, you really only need to cache things that are being frequently accessed. Sometimes it can be a trap to develop a really sophisticated caching strategy when you don't really need it. For a page like your home page that's getting hit several times a second, you definitely want to optimize it for speed; for a page that gets maybe a few hits an hour, like a month-old blog post, it's a bad idea to cache it, you only waste your time and make things more complicated and bug-prone.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload