mod_disk_cache Content cache storage manager keyed to URIs Experimental mod_disk_cache.c disk_cache_module ÀÌ ¸ðµâÀº ½ÇÇèÀûÀÎ »óÅÂÀÌ´Ù. ¹®¼­´Â ¾ÆÁ÷ ÀÛ¾÷ÁßÀÌ´Ù...

mod_disk_cache´Â µð½ºÅ©±â¹Ý ÀúÀå°ü¸®ÀÚ¸¦ ±¸ÇöÇÑ´Ù. ÀÌ ¸ðµâÀº ±âº»ÀûÀ¸·Î mod_proxy¿Í °°ÀÌ »ç¿ëÇÑ´Ù.

³»¿ëÀ» URI¸¦ Åä´ë·Î ¸¸µç Å°·Î ij½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù. Á¢±Ùº¸È£°¡ µÈ ³»¿ëÀº ij½¬ÇÏÁö¾Ê´Â´Ù.

ÁÖÀÇ:

mod_disk_cache´Â mod_cache°¡ ÇÊ¿äÇÏ´Ù.

CacheRoot ij½¬ ÆÄÀÏÀ» ÀúÀåÇÒ µð·ºÅ丮 root CacheRoot directory server configvirtual host

CacheRoot Áö½Ã¾î´Â µð½ºÅ©¿¡¼­ ij½¬ ÆÄÀÏÀ» ÀúÀåÇÒ µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù. mod_disk_cache ¸ðµâÀ» ¾ÆÆÄÄ¡ ¼­¹ö¿Í °°ÀÌ ÄÄÆÄÀÏÇÏ¿´°Å³ª ÀоîµéÀÎ °æ¿ì ¹Ýµå½Ã ÀÌ Áö½Ã¾î¸¦ Á¤ÀÇÇØ¾ß ÇÑ´Ù. CacheRoot¿¡ °ªÀÌ ¾øÀ¸¸é ¼³Á¤ÆÄÀÏÀ» ó¸®ÇÏÁö ¾Ê´Â´Ù. CacheDirLevels¿Í CacheDirLength Áö½Ã¾î´Â ÀÌ Áö½Ã¾î·Î ÁöÁ¤ÇÑ root µð·ºÅ丮ÀÇ ÇÏÀ§µð·ºÅ丮 ±¸Á¶¸¦ Áö½ÃÇÑ´Ù.

CacheRoot c:/cacheroot
CacheSize ij½¬·Î »ç¿ëÇÒ ÃÖ´ë µð½ºÅ©°ø°£ (KByte ´ÜÀ§) CacheSize KBytes CacheSize 1000000 server configvirtual host

CacheSize Áö½Ã¾î´Â ij½¬·Î »ç¿ëÇÒ µð½ºÅ©°ø°£ Å©±â¸¦ KByte (1024 ¹ÙÀÌÆ®) ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù. ÀÌ Áö½Ã¾î´Â ij½¬ Å©±â¸¦ Á¦ÇÑÇÏÁö ¾Ê´Â´Ù. °¡ºñÁöÄ÷¢ÅÍ°¡ ij½¬ »ç¿ë·®ÀÌ ¼³Á¤ÇÑ °ªº¸´Ù À۰Եɶ§±îÁö ÆÄÀÏÀ» Áö¿î´Ù. Ç×»ó »ç¿ë°¡´ÉÇÑ µð½ºÅ©°ø°£ º¸´Ù ÀÛÀº °ªÀ» »ç¿ëÇ϶ó.

CacheSize 5000000
CacheGcInterval °¡ºñÁöÄ÷¢Å͸¦ ½ÇÇàÇÏ´Â °£°Ý. CacheGcInterval hours server configvirtual host

CacheGcInterval Áö½Ã¾î´Â Ä«ºñÁöÄ÷¢ÅÍ°¡ µð½ºÅ©°ø°£À» ºñ¿ì´Â ½Ã°£ °£°ÝÀ» ½Ã°£´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheGcInterval 24
CacheGcInterval Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheDirLevels ij½¬ÀÇ ÇÏÀ§µð·ºÅ丮 ±íÀÌ. CacheDirLevels levels CacheDirLevels 3 server configvirtual host

CacheDirLevels Áö½Ã¾î´Â ij½¬ÀÇ ÇÏÀ§µð·ºÅ丮 ±íÀ̸¦ ÁöÁ¤ÇÑ´Ù. ij½¬µÈ ÀڷḦ CacheRoot µð·ºÅ丮 ¾Æ·¡ ÀÌ ±íÀ̱îÁö ÀúÀåÇÑ´Ù.

CacheDirLevels¿Í CacheDirLength¸¦ °öÇÏ¿© 20 º¸´Ù Å©¸é ¾ÈµÈ´Ù.

CacheDirLevels 5
CacheDirLength ÇÏÀ§µð·ºÅ丮¸íÀÇ ¹®ÀÚ°³¼ö CacheDirLength length CacheDirLength 2 server configvirtual host

CacheDirLength Áö½Ã¾î´Â ij½¬ °èÃþ±¸Á¶¿¡¼­ °¢ ÇÏÀ§µð·ºÅ丮¸íÀÇ ¹®ÀÚ¼ö¸¦ ÁöÁ¤ÇÑ´Ù.

CacheDirLevels¿Í CacheDirLength¸¦ °öÇÏ¿© 20 º¸´Ù Å©¸é ¾ÈµÈ´Ù.

CacheDirLength 4
CacheExpiryCheck ij½¬¿¡¼­ ÆÄÀÏÀ» ãÀ»¶§ ¸¸±â½Ã°£À» °í·ÁÇÒÁö ¿©ºÎ CacheExpiryCheck On|Off CacheExpiryCheck On server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheExpiryCheck Off
CacheExpiryCheck Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheMinFileSize ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼ÒÅ©±â (¹ÙÀÌÆ® ´ÜÀ§) CacheMinFileSize bytes CacheMinFileSize 1 server configvirtual host

CacheMinFileSize Áö½Ã¾î´Â ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼ÒÅ©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

CacheMinFileSize 64
CacheMaxFileSize ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ëÅ©±â (¹ÙÀÌÆ® ´ÜÀ§) CacheMaxFileSize bytes CacheMaxFileSize 1000000 server configvirtual host

CacheMaxFileSize Áö½Ã¾î´Â ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ëÅ©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

CacheMaxFileSize 64000
CacheTimeMargin ¹®¼­¸¦ ij½¬ÇÒ Ãּҽð£ ÇÑ°è CacheTimeMargin ? CacheTimeMargin ? server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheTimeMargin X CacheTimeMargin Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheGcDaily ¸ÅÀÏ °¡ºñÁöÄ÷¢Å͸¦ ½ÇÇàÇÒ ¹Ýº¹ ½Ã°£ (24½Ã ½Ã°è) CacheGcDaily time CacheGcDaily ? server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheGcDaily 23:59 CacheGcDaily Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheGcUnused URL¿¡ ÇØ´çÇÏ´Â ÂüÁ¶µÇÁö¾ÊÀº ij½¬ÆÄÀÏÀ» À¯ÁöÇÒ ±â°£. CacheGcUnused hours url-string CacheGcUnused ? server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheGcUnused 12 /local_images CacheGcUnused Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheGcClean URL¿¡ ÇØ´çÇÏ´Â º¯ÇÏÁö¾ÊÀº ij½¬ÆÄÀÏÀ» À¯ÁöÇÒ ½Ã°£ CacheGcClean hours url-string CacheGcClean ? server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheGcClean 12 /daily_scripts CacheGcClean Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.
CacheGcMemUsage °¡ºñÁöÄ÷¢ÅÍ°¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (kilobyte ´ÜÀ§) CacheGcMemUsage KBytes CacheGcMemUsage ? server configvirtual host

ÇÔ¼ö°¡ ±¸ÇöµÇ¸é ´õ ÀÚ¼¼ÇÑ ³»¿ëÀÌ ¿©±â ³ª¿Â´Ù.

CacheGcMemUsage 16 CacheGcMemUsage Áö½Ã¾î´Â ÇöÀç ±¸ÇöµÇÁö ¾Ê¾Ò´Ù.