lsws don't cache static content since it's not needed at all or in most scenarios.
lsws serve static content quickly and consume little system resource.
when a static content i.e., an image is requested repeatedly, linux may cache the image in memory, so lsws serve the image more quickly...
you can create vhosts under admin console, it's called "native virtual host".
litespeed support the 2 types of virtual host at the same time -- native vhost and vhosts from apache's httpd.conf. In fact, native vhost has higher priority than non-native vhosts. this is a trick but maybe very...
current algorithm,
Cache Hit Rate = Total Cache Hits / Total Req = 1,288/17,574 = 7.33%
but since lsws don't cache static content, like .css/.js/.jpg etc, but these static content also counts as Req, so the cache hit rate looks low.
this is the default setting. here's my recommendation:
Static Requests/second: 10-20
Dynamic Requests/second:1-5
Connection Soft Limit:25
Connection Hard Limit:30
Block Bad Request:Yes
for inbound/outbound bandwidth, I've not much experience, you can experiment on it. if above settings...
please try yourself first:
lsws admin console->Server->Security->Per Client Throttling
give a screenshot of the settings you select, then I can advice how to adjust them based on my experience.
from the screenshot, it's correct result.
please look at the cookie from the screenshot:
if_usrid=1
if_password=...
when these strings exist in cookie, indicate that this is a logged in user, so NOT return the cache. cache is for guest only.
so you just logout and visit your forum again as a...
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]
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.
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
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.
>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...