LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > vBulletin Guest Cache with LiteSpeed

Reply
 
Thread Tools Display Modes
  #11  
Old 01-13-2011, 09:00 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
oh my mistake I forgot you have global cache disabled in litespeed above config, as i thought the rewrite rule would cache all php pages which arent excluded by the rewrite rule. But since you have global cached disabled it wouldn't touch other scripts. Pretty neat that you can fine tune what specifically get's cached with global cache disabled
Reply With Quote
  #12  
Old 01-13-2011, 09:20 PM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Quote:
Originally Posted by NiteWave View Post
Hello dihuta, wish you're still monitoring this thread.

We've tried to cache this vBulletin(litespeed support forum) for guest visits for some days and looks successful so far. Just using the way you mentioned in your post: install a vBulletion plugin first, then using litespeed's unique rewrite+cache function to get it done.

It's far more simple and strait-forward than apache + varnish, we'd discuss/help with our users how to implement it under litespeed.
Quote:
Originally Posted by NiteWave View Post
1.install vBulletin plug-in(or "vBulletin Boost Product XML")
product-boostv1.xml‎
please refer the first post in this thread, to get the file's link and download it(currently, it's 657 views)
just to clarify you tried this on vB4.x forum or vB 3.8.6 ?
Reply With Quote
  #13  
Old 01-14-2011, 01:05 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
it's 3.8.4
Reply With Quote
  #14  
Old 01-14-2011, 02:00 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
I see, so you uploaded boost.php and installed product-boostv1.xml‎ ?
Reply With Quote
  #15  
Old 01-14-2011, 02:22 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
no need to upload boost.php in litespeed case. boost.php is used to generate varnish cache rules.
Reply With Quote
  #17  
Old 01-14-2011, 11:52 PM
dihuta dihuta is offline
Member
 
Join Date: Oct 2010
Posts: 37
These setting conflit with VBSEO.
If I put rewriterute before vbseo rules, VBSEO will not work, vice versa, Cache will not work.

Please help me.
Thank you.

Quote:
Originally Posted by NiteWave View Post
1.install vBulletin plug-in(or "vBulletin Boost Product XML")
product-boostv1.xml‎
please refer the first post in this thread, to get the file's link and download it(currently, it's 657 views)

2.set cache directory
lsws admin console-->Server-->Cache:
Cache Storage Settings->Storage Path:/tmp/diskcache (just for example)

please create this directory in shell:
#mkdir /tmp/diskcache
#chown nobody:nobody /tmp/diskcache
#chmod 700 /tmp/diskcache
(assume litespeed(or lshttpd) process is running as nobody)

3. set vhost's "Cache Policy"
assume vBulletin is natively configured as a lsws vhost "myforum"
lsws admin console->Virtual Hosts->myforum->Cache:
Code:
Enable Cache:No
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
4.use rewriterule to cache php pages which you want to
lsws admin console->Virtual Hosts->myforum->Rewrite:
(assume vBulletin installed in $DOCUMENT_ROOT/forum)


5. restart litespeed

Note: you may need set a cron job to clean up cace directory /tmp/diskcache. following script is borrowed from $SERVER_ROOT/admin/misc/cleancache.sh:
Code:
*/10 * * * * root find /tmp/diskcache -type f -mmin +8 -delete 2>/dev/null
delete cache which created 8 minutes ago(running once every 10 minutes). since we set cache expire time as 120 seconds(2 minutes), so it's safe to delete these cache files.
Reply With Quote
  #18  
Old 01-15-2011, 03:04 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
sorry, we may not able to help with vbseo, since this forum haven't installed it. Here we mainly demonstrate lsws's unique rewriterule+cache function, in example of vBulletin which happen to be running as litespeed support forum.
Reply With Quote
  #19  
Old 01-15-2011, 04:12 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
dihuta, might want to ask on vbseo by posting on their forums the above litespeed/cache rewrite rules and see where the conflict is ? I believe vbseo has it's own cookies for logged in users called vbseo_loggedin = yes
Reply With Quote
  #20  
Old 01-15-2011, 05:36 PM
dihuta dihuta is offline
Member
 
Join Date: Oct 2010
Posts: 37
Thanks Eva2000,
I will do it now.


Quote:
Originally Posted by eva2000 View Post
dihuta, might want to ask on vbseo by posting on their forums the above litespeed/cache rewrite rules and see where the conflict is ? I believe vbseo has it's own cookies for logged in users called vbseo_loggedin = yes
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.