Thank you so much.
About memory cache I still got a question. Now in my lighttpd.conf I
got following lines:
.....
server.modules = (
"mod_indexfile",
"mod_cache",
"mod_rewrite",
"mod_access",
"mod_expire",
"mod_accesslog",
"mod_dirlisting",
"mod_staticfile",
# 8
)
....
# for cache module
cache.enable = "enable"
cache.max-memory-size = 1024
cache.refresh-pattern = ("\.(?i)(jpg|jpeg|gif|png)$" => "21600
use-memory")
But after one day's observing, I found that free memory doesn't reduce
at all. It seems nothing's cached. This is the vmstat I get:
procs -----------memory---------- ---swap--
-----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy
id wa st
0 0 112 10148 81468 1673776 0 0 51 155 12 16 1
4 90 5 0
0 3 112 10032 81476 1674104 0 0 252 0 4036 1059 1
5 78 16 0
0 4 112 9608 81496 1674400 0 0 228 404 4217 1583 2
6 78 14 0
0 3 112 10500 81476 1673464 0 0 476 4776 4079 709 2
4 69 25 0
0 0 112 9828 81488 1673752 0 0 288 0 4173 1203 2
6 72 20 0
I also tried not to use "use-memory" option, and set a cache.bases for
file cache. but still, I found nothing there. It seems mod_cache is not
activated. Maybe I'm still missing something?
PS: I'm using the package lighttpd-1.4.23.modcache.v.1.8.0.tar.gz
Regards,
YX