diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-07-27 04:05:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-07-27 04:05:42 +0000 |
commit | 569f47e9c9086541e6e0b0464fd6b0860de4c546 (patch) | |
tree | aa51f18c7901a0367a50b7322026176f4c3b7f9a | |
parent | bc7f9241d0ca1d6263955d9d09f8fe8a81ab2fd1 (diff) | |
download | pfsense-569f47e9c9086541e6e0b0464fd6b0860de4c546.zip pfsense-569f47e9c9086541e6e0b0464fd6b0860de4c546.tar.gz |
Turn on Lighty caching and tell it what to cache
-rw-r--r-- | etc/inc/system.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 98c8034..c81dcc4 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -825,7 +825,7 @@ server.event-handler = "freebsd-kqueue" ## modules to load server.modules = ( {$captive_portal_module} - "mod_access", "mod_accesslog", + "mod_access", "mod_accesslog", "mod_expire" {$module}{$captiveportal} ) @@ -965,6 +965,18 @@ debug.log-file-not-found = "disable" {$captive_portal_mod_evasive} +# Turn on Lighty caching directives +compress.cache-dir = "/tmp/" +compress.filetype = ("text/plain", "text/html", "text/javascript", "text/css") + +expire.url = ( + "/themes/" => "access 50 hours", + "/widgets/" => "access 50 hours", + "/tree/" => "access 50 hours", + "/tree-images/" => "access 50 hours", + "/includes/" => "access 50 hours" + ) + EOD; $cert = str_replace("\r", "", $cert); |