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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > vBulletin Guest Cache with LiteSpeed

Reply
 
Thread Tools Display Modes
  #41  
Old 02-04-2011, 04:18 AM
track1 track1 is offline
Member
 
Join Date: Oct 2010
Posts: 46
I'm testing this feature in a real environment (high traffic vb3 forum), and seems to work well. The level of load on the servers is similar to apache/no-cache but supports many more simultaneous requests without overloading, tested with AB.

For now, I found some problems with 503 errors (not cache related) that are already solved, and at peak times, for some unknown reason, there was an overload of the database server that had not happened before, so I had to go back to apache.

Continue testing, I have 3 active trial licenses will buy if it goes well.

Last edited by track1; 02-04-2011 at 04:21 AM..
Reply With Quote
  #42  
Old 02-05-2011, 03:27 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
it's rather strange. the cache should reduce php/mysql load a lot.
Reply With Quote
  #43  
Old 02-11-2011, 01:36 AM
track1 track1 is offline
Member
 
Join Date: Oct 2010
Posts: 46
I have made more intensive tests with litespeed and adding some tuning work as stable as Apache and allow more connections. Finally bought 3 enterprise licenses.

One problem with cache system/vbulletin:
- Cache system works ok, but sometimes store pages of logged-in users and displays to guest users.

My .htaccess is as follows, checking everything (cookie values, etc) is correct, i don't know how that can happen sometimes.

Code:
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
RewriteCond %{HTTP_COOKIE} !bbuserid=
RewriteCond %{HTTP_COOKIE} !bbpassword=
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
RewriteCond %{REQUEST_URI} !^/forum/(login|register|usercp|private|profile|cron|image)\.php$
RewriteRule (.*) - [L,E=Cache-Control:max-age=120]

Last edited by track1; 02-11-2011 at 09:50 AM..
Reply With Quote
  #44  
Old 02-11-2011, 04:39 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
maybe this line
RewriteCond %{REQUEST_URI} !^/forum/(login|register|usercp|private|profile|cron|image) \.php$
not correct for your site?

what's the forum homepage? domain.com/ or domain.com/forum/?

p.s. what's status of the special mysql issue you mentioned last time?
Reply With Quote
  #45  
Old 02-11-2011, 09:41 AM
track1 track1 is offline
Member
 
Join Date: Oct 2010
Posts: 46
that line and path is correct on site .htaccess (some disallowed php files to be cached rule).

Reported logged in-cached pages are sometimes for showthread.php?t=xxxxx

mysql issue was probably some puntual overload, it has not happened again. Everything is working very stable and fast.
Reply With Quote
  #46  
Old 02-11-2011, 09:49 AM
track1 track1 is offline
Member
 
Join Date: Oct 2010
Posts: 46
this plugin have any usage with litespeed?
Code:
// Do not cache logged in user pages
if ( $vbulletin->userinfo['userid'] )
{
        header('X-Accel-Expires: 0');
};
Reply With Quote
  #47  
Old 02-11-2011, 04:59 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Is this plugin used in every page (php request)? If not, then it can not be used as lsws needs a signature for (non)cacheable page.
Reply With Quote
  #48  
Old 02-12-2011, 05:14 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
any sucess with vbseo installed site s? i have used this on two sites on my server sucessfully , but major big 3 sites use vbseo so really minimal impact i see
Reply With Quote
  #49  
Old 02-14-2011, 06:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Have you tried the latest rewrite rule posted?
http://www.litespeedtech.com/support...ead.php?t=4650
Reply With Quote
  #50  
Old 02-24-2011, 11:31 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by track1 View Post
this plugin have any usage with litespeed?
Code:
// Do not cache logged in user pages
if ( $vbulletin->userinfo['userid'] )
{
        header('X-Accel-Expires: 0');
};
with LSWS 4.0.20, change header() code or add a new one

Code:
header('X-LiteSpeed-Cache-Control: no-cache' );
it will prevent LSWS from caching this page.
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 08:42 AM.



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