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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > Can't Get vBulletin Cache Working

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2012, 04:09 PM
ShannonA ShannonA is offline
New Member
 
Join Date: Dec 2011
Posts: 4
Default Can't Get vBulletin Cache Working

I've been trying to get the vBulletin/Litespeed cache working today with no success.

Site is forum.rpg.net.

I generally followed the instructions here:
http://blog.litespeedtech.com/2011/0...uilt-in-cache/

I installed product-boostv1.xml with changes per here:
http://vbtechsupport.com/127/

I created the cache directory and put that info into Settings->Storage Path:. Later, just to make sure all was well, I turned on caching generally and saw things got written here. So, this seems to be right. (General caching was turned back off afterward.)

I have imported apache vHosts, so I didn't set any policy.

I added info to the existing .htaccess:
PHP Code:
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 %{QUERY_STRING} !product=vbnexus
RewriteCond 
%{REQUEST_URI} !^/admincp
RewriteCond 
%{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image)\.php$
RewriteRule (.*\.php) - [L,E=Cache-Control:max-age=120
(PS: A bug in the original post puts a space " " before the \.php in the above.)

I've restarted the Litespeed server many times by this point.

I logged in and verified that the bb_imloggedin is getting set. The only oddity is that it's a cookie set on rpg.net rather than forum.rpg.net, because I share vB cookies with the rest of the site.

But, no caching occurs from vBulletin:

# ls -lag
total 8
drwxrwx--- 2 www-data 4096 Oct 25 15:26 .
drwxrwxr-x 29 www-data 4096 Oct 25 14:46 ..

vBulletin is 4.2.0 PL2, Litespeed is 4.1.11
Reply With Quote
  #2  
Old 10-25-2012, 07:36 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
You can enable rewrite logging (add 'RewriteLogLevel 9' in httpd.conf) and if these rewrite rules are matched.
Reply With Quote
  #3  
Old 10-26-2012, 09:26 PM
ShannonA ShannonA is offline
New Member
 
Join Date: Dec 2011
Posts: 4
I appreciate the feedback. I'll let y'all know the results.
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:46 PM.



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