Can't Get vBulletin Cache Working

ShannonA

Well-Known Member
#1
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/01/28/speed-up-vbulletin-sites-through-litespeed-built-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:
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
 
Top