Can't get zip compression working with static cache...

Discussion in 'Ruby/Rails' started by radixhound, Mar 5, 2009.

  1. radixhound

    radixhound Member

    Hi there,

    I am using two different rails apps to host sites on my server, Mephisto and Radiant. I have zip compression working for Mephisto and I can't seem to get it to work with Radiant.

    I recently installed a static caching extension to a couple Radiant sites. (here:

    The cache appears to be working but there is no zip compression happening. I checked the file permissions, and the server has rights to write into the folder where the cached files are. There is a url rewrite going on to redirect requests to /cache/myfile.html for /myfile.

    Is this going to work, or will the zip files get created in a different location from the cached files, as in /public/myfile.html.lsz for the cached file in /public/cache/myfile.html.lsz ??

    Maybe I'm way off. If so, can you steer me back on course?
  2. mistwang

    mistwang LiteSpeed Staff

    LSWS no longer create .lsz file under the same directory, instead it creates compressed temp file under LSWS swap directory, usually it is /tmp/lshttpd/swap/ .
    So, just let LSWS to handle the gzip compression instead of using the compression option in the Radiant.
  3. radixhound

    radixhound Member

    Great! Thanks. I didn't know that had changed and I remember having to tweak a few things to get it working before.

    It turns out that everything is compressed now, and has been for a while, which is awesome.

Share This Page