diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-23 00:05:41 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-23 00:05:41 -0400 |
commit | 76779f685233402f58a8dbb1c050d508d580c2bf (patch) | |
tree | 317e96b0f556256a2a772fdef9211ae780135812 | |
parent | 1e6e2416c1effc112d6839ea4ccd7e73088c05f6 (diff) | |
download | pfsense-packages-76779f685233402f58a8dbb1c050d508d580c2bf.tar.gz pfsense-packages-76779f685233402f58a8dbb1c050d508d580c2bf.tar.bz2 pfsense-packages-76779f685233402f58a8dbb1c050d508d580c2bf.zip |
Add enable memory cache and disk cache. Add initial plumbing and add XXX
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 11 | ||||
-rw-r--r-- | config/apache_mod_security/apache_mod_security_settings.xml | 44 |
2 files changed, 55 insertions, 0 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc index 0c8ff9a3..5a9ab852 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -52,7 +52,18 @@ function generate_apache_configuration() { else $global_listen .= ":80"; } + + + + // XXX The maximum amount of memory used by the cache in KBytes + //MCacheSize 700000 + // CacheRoot Directive + // CacheRoot /var/apache_mod_security_cache + // htcacheclean can be used to maintain the cache size at a maximum level. + // XXX + + // Syntax:ProxyPreserveHost On|Off ? $mod_proxy = "ProxyRequests on\n"; diff --git a/config/apache_mod_security/apache_mod_security_settings.xml b/config/apache_mod_security/apache_mod_security_settings.xml index 6a91309a..0ff2aa2d 100644 --- a/config/apache_mod_security/apache_mod_security_settings.xml +++ b/config/apache_mod_security/apache_mod_security_settings.xml @@ -103,6 +103,50 @@ </description> <type>input</type> </field> + + <field> + <fielddescr>Use mod_mem_cache</fielddescr> + <fieldname>mod_mem_cache</fieldname> + <description> + <![CDATA[ + Enables mod_mem_cache which stores cached documents in memory. + ]]> + </description> + <type>checkbox</type> + </field> + <field> + <fielddescr>mod_mem_cache memory usage</fielddescr> + <fieldname>mod_mem_cache_size</fieldname> + <description> + <![CDATA[ + Sets the memory usage in megabytes. + ]]> + </description> + <type>input</type> + </field> + + <field> + <fielddescr>Use mod_disk_cache</fielddescr> + <fieldname>mod_disk_cache</fieldname> + <description> + <![CDATA[ + mod_disk_cache implements a disk based storage manager. It is primarily of use in conjunction with mod_cache. + ]]> + </description> + <type>checkbox</type> + </field> + <field> + <fielddescr>mod_disk_cache memory usage</fielddescr> + <fieldname>mod_disk_cache_size</fieldname> + <description> + <![CDATA[ + Sets the memory usage in Kbytes. + ]]> + </description> + <type>input</type> + </field> + + </fields> <custom_php_validation_command> </custom_php_validation_command> |