From: Rich Bowen
-<!-- The following include can be cached --> -<!--#include virtual="/footer.html" --> - -<!-- The following include can not be cached --> -<!--#include file="/path/to/footer.html" -->
+<!-- The following include can be cached -->
+<!--#include virtual="/footer.html" -->
+
+<!-- The following include can not be cached -->
+<!--#include file="/path/to/footer.html" -->
+
If you are using Server Side Includes, and want the benefit of speedy
serves from the cache, you should use virtual
include
@@ -398,7 +399,9 @@ Vary: negotiate,accept-language,accept-charset
instructs httpd to open the file when it is started and to re-use
this file-handle for all subsequent access to this file.
CacheFile /usr/local/apache2/htdocs/index.html
+ CacheFile /usr/local/apache2/htdocs/index.html
+
If you intend to cache a large number of files in this manner, you must ensure that your operating system's limit for the number of open @@ -489,7 +492,9 @@ sys 0m0.000s start time (using the mmap system call). httpd will use the in-memory contents for all subsequent accesses to this file.
-MMapFile /usr/local/apache2/htdocs/index.html
+ MMapFile /usr/local/apache2/htdocs/index.html
+
As with the
CacheFile
directive, any
@@ -516,11 +521,12 @@ sys 0m0.000s
Typically the module will be configured as so;
--CacheRoot /var/cache/apache/ -CacheEnable disk / -CacheDirLevels 2 -CacheDirLength 1
+CacheRoot /var/cache/apache/
+CacheEnable disk /
+CacheDirLevels 2
+CacheDirLength 1
+
Importantly, as the cached files are locally stored, operating system in-memory caching will typically be applied to their access also. So diff --git a/docs/manual/caching.xml.tr b/docs/manual/caching.xml.tr index 75acd37ab0..c051bd181a 100644 --- a/docs/manual/caching.xml.tr +++ b/docs/manual/caching.xml.tr @@ -1,7 +1,7 @@ - + + + +