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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > How to use LS cache for my site

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2011, 10:40 PM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
Angry How to use LS cache for my site

Hello
This LS cache really complicated i tried to add the code to my .htaccess but , no cache hits in Litespeed stats ? Could not you make it like just Enable or Disable or somthing simple as that ? or could you do help to set it up on our site for us ? Please
Reply With Quote
  #2  
Old 09-18-2011, 11:01 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please give more detail about how you setup the cache.

you can start to try cache 1 php page.

what cache guide did you follow?
Reply With Quote
  #3  
Old 09-18-2011, 11:42 PM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
Hello
Do you have any Instant Messenger ? We better live chat ? Or what infos do you need to look into this , btw with Litespeed i have a problem like
the Request in processing is much higher than Request / sec and this make the server running slow , i tried to use Varnish plugin for Cpanel and it run abit faster than Litespeed ( with out cache ) but not stable as Litespeed so i changed to Litespeed and want to check the Cache function but unable to do it . Could i provide all the servers and site info and then you setup the cache for me please ?
PS : i followed the generale Guide but unsucceful seem NO cache hits .
Reply With Quote
  #4  
Old 09-19-2011, 12:00 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
I can try to set up an example cache for you(e.g., just cache a few pages) and you finish the rest.
Reply With Quote
  #5  
Old 09-19-2011, 12:26 AM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
Hello
I ve send you a PM about my server/site detail please help me thanks so much
Reply With Quote
  #6  
Old 09-19-2011, 01:28 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
the main reason of cache not working is because cache Storage Path not set.

Server->Cache->Storage Path:

as stated in
http://www.litespeedtech.com/support...itespeed:cache
How to enable LiteSpeed Cache
step 1.
Reply With Quote
  #7  
Old 09-19-2011, 01:32 AM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
Cache hits / sec seem very low ? Only 2 hits/sec ? while request in processing is like 70/s
Reply With Quote
  #8  
Old 09-19-2011, 01:57 AM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
Total Req 229,217 Total Cache Hits 9,271
Cache Hit Rate 4.04% Cache Hits/Sec 2.0

This is really low i think ?
Reply With Quote
  #9  
Old 09-19-2011, 03:38 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
actually the cache rate is higher than reported.
since lsws serve static contents efficiently and don't cache them, only cache dynamic pages like php, so the reported rate looks low. the "Total Reqs" include both static and dynamic requests.

another way to improve the cache hit rate is to improve the rewrite rules in .htaccess and increase cache time.
Reply With Quote
  #10  
Old 09-19-2011, 03:54 AM
server4vn server4vn is offline
Member
 
Join Date: Jun 2010
Posts: 25
How to improve rewrite rules
and what you think is reasonable cache time
my server spec i told you in PM
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 07:18 AM.



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