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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 01-25-2011, 06:27 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
Update trying this on my local test install vB 3.8.6 PL1 at 192.168.56.101/index.php where user prefix cookie in config.php changed from bb to zz.

Installed product-boostv1.xml‎ from vbulletin.com blog

.htaccess

Code:
RewriteEngine on
#RewriteCond %{HTTP_HOST} !^www\.domain\.com$
#RewriteRule /forum/(.*)$ http://www.domain.com/forum/$1 [R=301,L]

RewriteCond %{HTTP_COOKIE} !zzimloggedin=yes
RewriteCond %{HTTP_COOKIE} !zzuserid=
RewriteCond %{HTTP_COOKIE} !zzpassword=
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]
litespeed 4.0.19 cache policy

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
apache httpd.conf contains

Code:
#disk cache
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /lscache/   
#CacheEnable disk /  
</IfModule>
</IfModule>
unfortunately not seeing any caching being done ?

index.php

Code:
curl -I 192.168.56.101/index.php
HTTP/1.1 200 OK
Date: Tue, 25 Jan 2011 14:20:25 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
X-Powered-By: PHP/5.3.5
Cache-Control: private
Pragma: private
Content-Type: text/html; charset=ISO-8859-1
X-UA-Compatible: IE=7
Set-Cookie: zzlastvisit=1295965225; expires=Wed, 25-Jan-2012 14:20:25 GMT; path=/
Set-Cookie: zzlastactivity=0; expires=Wed, 25-Jan-2012 14:20:25 GMT; path=/
Set-Cookie: zzimloggedin=deleted; expires=Mon, 25-Jan-2010 14:20:24 GMT; path=/
calendar.php

Code:
curl -I 192.168.56.101/calendar.php
HTTP/1.1 200 OK
Date: Tue, 25 Jan 2011 14:23:08 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
X-Powered-By: PHP/5.3.5
Cache-Control: private
Pragma: private
Content-Type: text/html; charset=ISO-8859-1
X-UA-Compatible: IE=7
Set-Cookie: zzlastvisit=1295965388; expires=Wed, 25-Jan-2012 14:23:08 GMT; path=/
Set-Cookie: zzlastactivity=0; expires=Wed, 25-Jan-2012 14:23:08 GMT; path=/
Set-Cookie: zzimloggedin=deleted; expires=Mon, 25-Jan-2010 14:23:07 GMT; path=/
Set-Cookie: zzcalendar=73b76532bddaadc3d4641a679a7a864d54659493a-1-%7Bs-7-.calyear._i-2011_%7D; path=/
Set-Cookie: zzcalendar=a8c9af9110b7d9bdc2ae7d1b37fbcf3dd53a84bfa-2-%7Bs-7-.calyear._i-2011_s-8-.calmonth._i-1_%7D; path=/
Set-Cookie: zzcalendar=5c26fff35c941f4c0da6757b2b77682c241d1d2aa-3-%7Bs-7-.calyear._i-2011_s-8-.calmonth._i-1_s-8-.calview1._s-12-.displaymonth._%7D; path=/
Code:
[root@localhost lscache]# ls -alhR
.:
total 12K
drwxrwxrwx  2 nobody nobody 4.0K Jan 25 00:09 .
drwxr-xr-x 28 root   root   4.0K Jan 25 21:58 ..
Not sure if xml plugin code and vB 3.8.6 PL1 has anything different from litespeed testing this on this forum vB 3.8.4.
Reply With Quote
 

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 06:11 PM.



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