Ligttpd could'nt save cache file

5 views
Skip to first unread message

LM

unread,
Jun 23, 2008, 4:10:20 AM6/23/08
to mod_cache
Dear Team,

I have installed Mod-cache Stable version 1.4.4 for lighttpd 1.4.19,
and i used example config. But i didn't see any cache files in cache
folder?

This example:

cache.support-queries = "enable" #ignore '?' in url
cache.bases = ("/data/cache") #write cached files in /data/cache
directory
cache.refresh-pattern = (
"/$" => "5 update-on-refresh no-expire-header", # update homepage
every 5 minutes and on refresh requests without setting expire headers
"\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming", # to
work with mod_flv_streaming for flv files
"\.(?i)(js|css|xml)$" => "240", # update js/css/xml every 4 hours and
on refresh requests
"\.(?i)(htm|html|shtml)$" => "30", # update html/htm/shtml every 30
minutes and on refresh requests
"\.(?i)(jpg|bmp|jpeg|gif|png)$" => "2880", # update graphics files
every 2 days
"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request", # cache media file forever
"." => "30 update-on-refresh" # default to update every 30 minutes
and on refresh requests
)
#mod_proxy_core setting, config your backend servers here
proxy-core.backends = ( "x.x.x.x:80", "y.y.y.y:80")
proxy-core.balancer = "round-robin" # or "sqf" or "carp"
proxy-core.protocol = "http"
#it's important to enable proxy-core.worked-with-modcache,
# or mod_proxy_core will not cooperate with mod-cache
proxy-core.worked-with-modcache = "enable"

Please help me.

LM

unread,
Jun 23, 2008, 4:13:30 AM6/23/08
to mod_cache
Sorry this is correct config:

cache.support-queries = "enable" #ignore '?' in url
cache.bases = ("/data/cache") #write cached files in /data/cache
directory
cache.refresh-pattern = (
"/$" => "5 update-on-refresh no-expire-header", # update homepage
every 5 minutes and on refresh requests without setting expire headers
"\.(?i)(flv)$" => "0 fetchall-for-range-request flv-streaming", # to
work with mod_flv_streaming for flv files
"\.(?i)(js|css|xml)$" => "240", # update js/css/xml every 4 hours and
on refresh requests
"\.(?i)(htm|html|shtml)$" => "30", # update html/htm/shtml every 30
minutes and on refresh requests
"\.(?i)(jpg|bmp|jpeg|gif|png)$" => "2880", # update graphics files
every 2 days
"\.(?i)(rar|zip|wmv|avi|mp3|ape|rm|mpeg|mpg|wma|asf|rmvb|flv)$" => "0
fetchall-for-range-request", # cache media file forever
"." => "30 update-on-refresh" # default to update every 30 minutes
and on refresh requests
)
#mod_proxy setting, config your backend servers here
proxy.server = ( "/" =>
(
( "host" => "x.x.x.x", "port" => 80 ) # real backend
http server ip and port
)
)

Hongyu

unread,
Jun 23, 2008, 6:16:44 AM6/23/08
to mod_...@googlegroups.com
set cache.debug = "enable" and see what modcache tells in lighttpd.error.log file

LM

unread,
Jun 23, 2008, 6:50:13 AM6/23/08
to mod_cache
Thanks,

I have done.
Reply all
Reply to author
Forward
0 new messages