httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Millikan" <>
Subject [users@httpd] mod_cache > Using both mod_mem_cache and mod_disk_cache for faster times?
Date Sat, 07 Dec 2013 00:29:26 GMT
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.




Geoff Millikan,


---== 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




View raw message