Can't Get vBulletin Cache Working

Discussion in 'LiteSpeed Cache' started by ShannonA, Oct 26, 2012.

  1. ShannonA

    ShannonA Member

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

    Site is

    I generally followed the instructions here:

    I installed product-boostv1.xml with changes per here:

    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:

    RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
    %{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
    %{REQUEST_URI} !^/admincp
    %{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 rather than, 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
  2. webizen

    webizen New Member

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

    ShannonA Member

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

Share This Page