LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LiteSpeed Cache (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=30)
-   -   Can't Get vBulletin Cache Working (http://www.litespeedtech.com/support/forum/showthread.php?t=6331)

ShannonA 10-25-2012 04:09 PM

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

webizen 10-25-2012 07:36 PM

You can enable rewrite logging (add 'RewriteLogLevel 9' in httpd.conf) and if these rewrite rules are matched.

ShannonA 10-26-2012 09:26 PM

I appreciate the feedback. I'll let y'all know the results.


All times are GMT -7. The time now is 04:18 AM.