I've been trying to set up the vBulletin cache in accordance with the instructions here:
http://blog.litespeedtech.com/2011/01/28/speed-up-vbulletin-sites-through-litespeed-built-in-cache/
FIRST problem, the Rewrite rules don't seem to work right.
I put them in as follows for our site at "forum.rpg.net":
When I do so, I don't get any results from my log files, even when I turn debugging up to '9' and INFO logging on. Then, I delete this line:
And things start logging correctly ... which implies to me that there's something very wrong with that line, but I can't figure out what.
Even when I have that line temporarily removed (for testing only, as clearly the site wouldn't work well with it missing!), caching doesn't seem to work. I look at my caching directory and there's nothing there, and I don't see the X-Litespeed-Cache headers.
(The user with permissions matches the web server.)
Despite that, I do see this sort of thing logging (while I have that bad line out):
So any ideas on how to fix these two problems?
This is vB 4.2.2; has the cache stopped working after 4.0?
Main Cache Setting:
Virtual Host Cache Setting:
http://blog.litespeedtech.com/2011/01/28/speed-up-vbulletin-sites-through-litespeed-built-in-cache/
FIRST problem, the Rewrite rules don't seem to work right.
I put them in as follows for our site at "forum.rpg.net":
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} !^/(login|register|usercp|private|profile|cron|image) \.php$
RewriteCond %{REQUEST_URI} !^/admincp
RewriteRule /(.*\.php)?$ – [L,E=Cache-Control:max-age=120]
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} !^/(login|register|usercp|private|profile|cron|image) \.php$
RewriteCond %{REQUEST_URI} !^/admincp
RewriteRule /(.*\.php)?$ – [L,E=Cache-Control:max-age=120]
RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image) \.php$
Even when I have that line temporarily removed (for testing only, as clearly the site wouldn't work well with it missing!), caching doesn't seem to work. I look at my caching directory and there's nothing there, and I don't see the X-Litespeed-Cache headers.
atropos:/var/log/lsws/rpgnet# !ls
ls -lag /var/www/litespeedcache/
total 8
drwx------ 2 www-data 4096 Oct 25 2012 .
drwxrwxr-x 28 www-data 4096 Sep 10 11:38 ..
ls -lag /var/www/litespeedcache/
total 8
drwx------ 2 www-data 4096 Oct 25 2012 .
drwxrwxr-x 28 www-data 4096 Sep 10 11:38 ..
Despite that, I do see this sort of thing logging (while I have that bad line out):
[REWRITE] apply cache-control: 'max-age=120'.
[REWRITE] Source URI: '/showthread.php' => Result URI: '..?'
[REWRITE] Last Rule, stop!
[REWRITE] Source URI: '/showthread.php' => Result URI: '..?'
[REWRITE] Last Rule, stop!
This is vB 4.2.2; has the cache stopped working after 4.0?
Main Cache Setting:
Cache Storage Settings Edit
Storage Path
/var/www/litespeedcache
Max Object Size
Not Set
Cache Policy Edit
Enable Cache
Not Set
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Not Set
Cache Request with Cookie
Not Set
Cache Response with Cookie
Not Set
Ignore Request Cache-Control
Not Set
Ignore Response Cache-Control
Not Set
Enable Private Cache
Not Set
Private Cache Expire Time (seconds)
Not Set
Do-Not-Cache URL
Edit
Not Set
Do-Not-Cache Domains
Edit
Not Set
Storage Path
/var/www/litespeedcache
Max Object Size
Not Set
Cache Policy Edit
Enable Cache
Not Set
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Not Set
Cache Request with Cookie
Not Set
Cache Response with Cookie
Not Set
Ignore Request Cache-Control
Not Set
Ignore Response Cache-Control
Not Set
Enable Private Cache
Not Set
Private Cache Expire Time (seconds)
Not Set
Do-Not-Cache URL
Edit
Not Set
Do-Not-Cache Domains
Edit
Not Set
Cache Policy Edit
Enable Cache
No
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Yes
Cache Request with Cookie
Yes
Cache Response with Cookie
Yes
Ignore Request Cache-Control
Yes
Ignore Response Cache-Control
Yes
Enable Private Cache
Not Set
Private Cache Expire Time (seconds)
Not Set
Enable Cache
No
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Yes
Cache Request with Cookie
Yes
Cache Response with Cookie
Yes
Ignore Request Cache-Control
Yes
Ignore Response Cache-Control
Yes
Enable Private Cache
Not Set
Private Cache Expire Time (seconds)
Not Set
Last edited: