You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Geoff Millikan <gm...@t1shopper.com> on 2013/12/07 01:29:26 UTC

[users@httpd] mod_cache > Using both mod_mem_cache and mod_disk_cache for faster times?

Dear List,

 

When two cache sources are configured the documentation says Apache tries to pull the object from the first cache source and if it's
not there, it tries the second.

 

Based on this, is it efficient to use 2 caches for the same content: 

 

- mod_mem_cache for frequently used and fast access 

- and mod_disk_cache for slightly slower access (but nearly unlimited storage space)?

 

Seems this would be good but maybe the overhead of polling both caches results in everything being slower?

Anyone with experience here?  Sample config below.

 

Thanks,

 

Geoff Millikan, http://www.t1shopper.com/

 

---== Sample Config Snippet ==---

CacheRoot /var/cache/mod_cache/

CacheEnable  mem /

CacheEnable disk /

#Limit RAM cache to 10MB and 100 items.  Put everything else on the disk.

MCacheSize 2048

MCacheMaxObjectCount 100

MCacheRemovalAlgorithm GDSF

CacheDisable /images