httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Millikan" <gmilli...@t1shopper.com>
Subject [users@httpd] mod_cache > Faster load times using both mod_mem_cache and mod_disk_cache?
Date Sun, 08 Dec 2013 16:27:45 GMT
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


Mime
View raw message