LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Can't get zip compression working with static cache...

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2009, 12:00 PM
radixhound radixhound is offline
Member
 
Join Date: Feb 2007
Posts: 11
Default Can't get zip compression working with static cache...

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: http://github.com/tricycle/radiant-s...on/tree/master)

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?
Reply With Quote
  #2  
Old 03-05-2009, 02:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #3  
Old 03-05-2009, 03:29 PM
radixhound radixhound is offline
Member
 
Join Date: Feb 2007
Posts: 11
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:21 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.