Okay to ah!

On 5/17/06, Ariz Jacinto <[EMAIL PROTECTED]> wrote:
if you're a fan of MySQL's query cache and memory storage engine, then
you might also be interested with Apache HTTP server's mod_cache. the
module caches static and dynamic pages and stores them on memory or
hard disk for a quicker access upon other client's request. the module is
available on version 2.0 but considered stable on version 2.2.x.

you might think that caching on memory makes sense but not on a hard
disk. but caching on a hard disk can be practical if the pages are dynamic
that access a database server on the same or a separate machine.
just don't forget to set an content expiration on those since you don't to
view an old content after a while.

if you want to check it out for yourself then, recompile your httpd with
the following options:

--enable-cache --enable-disk-cache --enable-file-cache --enable-mem-cache


or edit httpd.conf and load the following modules:

LoadModule cache_module          modules/mod_cache.so
LoadModule disk_cache_module  modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so


then configure mod_cache:

<IfModule mod_cache.c>
#memory
CacheEnable mem {path/url to be cached}
MCacheSize {size of memory to be allocated for caching}

#disk
CacheEnable disk {path/url to be cached}
CacheRoot {directory path for storing caches}

CacheDisable {path/url to be excluded for caching}
</IfModule>

then restart the httpd service. for more options, kindly check the manual:
http://httpd.apache.org/docs/2.2/mod/mod_cache.html

i'm still testing the module and watching for performance improvements
and if it sticks, this would lead to memory & hard disk size upgrades.  :)




_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph




--
John Peter Loh

Phone: +13602267476
Email: [EMAIL PROTECTED]
Web: http://www.jploh.com/

Software Developer
Echo Systems, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.asterisk.com.ph
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to