[solved] vBulletin + LiteSpeed Cache

andych

Well-Known Member
#1
Last edited by a moderator:

NiteWave

Administrator
#2
there are also 2 wiki entries for cache vBulletin:
http://blog.litespeedtech.com/2011/01/28/speed-up-vbulletin-sites-through-litespeed-built-in-cache/
How to enable LSWS cache for vBulletin

http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:litespeed:cache:vbulletin
How to setup LSWS cache in vBSEO

>I need to cache all static components of vBulletin files (e.g: the .js, and images, etc..)
litepeed won't cache static pages but dynamic pages --- this is most efficient policy.
 

andych

Well-Known Member
#3
Hi NiteWave,

I also had tried the 2 URLs you gave me above, but I was unable to find the vBulletin Plug-Ins.

And is that works only for guest caching? What about members after they logged-in? Are they cached as well?

 

NiteWave

Administrator
#6
>I already have X CACHE, is there any issues with it?
xcache is php opcode cache, not relate with litespeed page cache at all.

>Btw, that works only for guest caching? What about members after they logged-in? Are they cached as well?

you can try to cache all pages including logged-in user, as long as logged-in user has no objection. however, when a user want to read his private messages, but read other user's private message since it's cached? when he want to edit his profile, but see other's profile ? etc.
 

NiteWave

Administrator
#8
to play with cache, you can try to cache one page, e.g., phpinfo.php

if you fail to cache this page, PM me your server's access info, I can take a quick look.
 

andych

Well-Known Member
#9
@NiteWave:

PM Sent!
with credentials :)

---

@eva2000:

Is that for LiteSpeed Cache or Varnish?

 
Last edited:
#10
the cache works now, please test:
www.yourdomain.com/test.php

what I changed:
virtual hosts->yourdomain->Rewrite->Enable Rewrite:No ==> Yes

and added one line in Rewrite Rules:
RewriteRule /test.php - [L,E=Cache-Control:max-age=120]

in response header, can see
X-LiteSpeed-Cache:hit
 
#16
cached page in firebug, should have response header:
X-LiteSpeed-Cache:hit

the rewrite rules better put in DocumentRoot/.htaccess,
mixed with vBulletin's current rewrite rules.

now you put those rules in virtual host's rewrite section.
 

andych

Well-Known Member
#17
Now I uncomment your commented rules at litespeed admin -> vhost -> rewrite.

And moved them to .htaccess so it's look like this:



Then commented your given rules at ls admin:



But then I checked with Firebugs for the homepage:



And for the test.php also seems not cached as well:



Which 'should be' cached with the rule of RewriteRule /(.*\.php)?$ ?^?^? [E=Cache-Control:max-age=120] that I put on .htaccess (refers 1st image of this post)

---

Update:

Real-Time Statistics also returned seems not caching at all:

 
Last edited:
#18
1. since you don't use virtual host level rewrite now, you can change back Enable Rewrite:Yes->No

2. what's the ?^?^ in this line?
RewriteRule /(.*\.php)?$ ?^?^ [E=Cache-Control:max-age=120]
please change it to
RewriteRule (.*) - [E=Cache-Control:max-age=120]
 
Top