mod_cache > Faster load times using both mod_mem_cache and mod_disk_cache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux