Posts Tagged ‘wordpress’

Lighttpd and WP Super Cache

Saturday, August 1st, 2009

Why would you need lua scripting to serve cached static files when you instead can

Like this:

    $HTTP["host"] == "blag.zash.se" {
            server.error-handler-404 = "/index.php"
            dir-listing.activate = "disable"
    }

The stuff i have in the supercache/blag.zash.se/ directory is: 2009, category, page, tag. Oh, and of course index.html, which is configured to take precedence over index.php. If you have other virtual directories in your root you will need to create symlinks for those too. And of course for each year, if you have that kind of setup.

Also, with mod_compress, there’s no need for WP Super Cache’s own (apparently buggy) compression. And you get compression of scripts and style sheets.