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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > Can't enable cache

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2009, 05:19 AM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
Default Can't enable cache

I've modified the cache settings in the server config menu.. I've tried setting the cache location to /tmp/lshttpd/cache and when that didn't work I set it to /var/cache/lsws but that doesn't work either. I have set max size to 1024, expire time to 3600, and the radio buttons are all set to yes.

I have lsws setup to run as www-data:www-data and have chowned both the cache directories I listed above to that user:group, and even tried a chmod 777 on both directories. but still, nothing will show up in the folder.

I have also setup the cache options at the vhost level thinking that may be it.

There are no logs about it in the error log that I can see.

Any help is appreciated
Reply With Quote
  #2  
Old 02-10-2009, 05:25 AM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
update for anyone else that comes across this issue - mistwang posted that the cache functionality is only available with a 2cpu enterprise license. I have a 1cpu license, that's why it isn't working.

Reply With Quote
  #3  
Old 02-18-2009, 09:46 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Hi,

We are trialing the enterprise 2CPU license. LS is reading direct from our httpd.conf. We have taken all the relevant steps to enable the cache but nothing ever gets added to the directory.

Any ideas?
Reply With Quote
  #4  
Old 02-18-2009, 12:48 PM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
After I updated to the 2cpu license I didn't get anything in there for almost 2 days, even after doing the update license command from the terminal. - then, all of a sudden the cache enabled itself and broke all my sites (DOH!) - I had left it enabled, and everything set to yes.

so.. uh, maybe just wait?
Reply With Quote
  #5  
Old 02-18-2009, 12:51 PM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Quote:
Originally Posted by Michael.Terence View Post
After I updated to the 2cpu license I didn't get anything in there for almost 2 days, even after doing the update license command from the terminal. - then, all of a sudden the cache enabled itself and broke all my sites (DOH!) - I had left it enabled, and everything set to yes.

so.. uh, maybe just wait?
How did it break your sites? Did you notice any speed improvements with it? What did it do to server load?

Thanks!
Reply With Quote
  #6  
Old 02-18-2009, 02:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
Make sure to enable the cache with Apache mod_cache directive

CacheEnable ...

Some site like vB, does not allow page being cached.
Reply With Quote
  #7  
Old 02-18-2009, 02:35 PM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Can this be enabled at the server level not per vhost?
Reply With Quote
  #8  
Old 02-19-2009, 09:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
Should be able to, give it a try.
Reply With Quote
  #9  
Old 02-20-2009, 05:09 AM
Michael.Terence Michael.Terence is offline
Member
 
Join Date: Jan 2009
Posts: 28
Quote:
Originally Posted by closet geek View Post
How did it break your sites? Did you notice any speed improvements with it? What did it do to server load?

Thanks!
I can't answer the server load question, I didn't take a look. The box only runs a load of ~.10 typically (which I think is great, considering the high traffic clients I have on there).

For my clients without a dedicated IP address, I use the vhost template functionality from the admin panel - I have forced gzip compression. All of my clients use Wordpress, and take advantage of the wp-super-cache plugin. With that plugin enabled, and the cache enabled you were greeted with double compressed pages, 502 errors, or 404 errors.

There was also another issue: Client A has a private IP address - she uses WP to post deals, etc. When the cache enabled itself, all of a sudden when folks typed their domain name, they were actually seeing my family blog instead of her content. Her domain name was in the browser bar, and the request was going to her private IP address but (and this is just a thought - I didn't test it) the FIRST vhost (in this case clarke-family.net) in the DEFAULT php vhost template was being served instead of her content.

This particular client's user/group has no access permissions to the vhost_root of my family blog - my only guess is that it was pulling it from cache.
Reply With Quote
  #10  
Old 02-22-2009, 05:24 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Hmm doesn't sound like the cache feature is going to work very well in a shared hosting environment in this case.

Thanks for your detailed reply.
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 11:48 AM.



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