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/08 17:27:45 UTC

[users@httpd] mod_cache > Faster load times using both mod_mem_cache and mod_disk_cache?

Dear List,

When both 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 cache the exact same content twice: 

- in mod_mem_cache for faster access of more frequently accessed objects AND
- in mod_disk_cache for slightly slower access (but nearly unlimited storage space)?

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

Sample config below.

Thanks,

Geoff Millikan

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

# Enable the RAM cache first because this should be a bit faster than the hard drive based cache.
CacheEnable  mem /

# Enable hard drive-based cache second.
CacheEnable disk /

# Limit RAM cache to 10MB and 100 items, everything else goes to the disk.
MCacheSize 2048
MCacheMaxObjectCount 100
MCacheRemovalAlgorithm GDSF
CacheDisable /images
CacheRoot /var/cache/mod_cache/




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org