This is a discussion on Problems with mod_mem_cache and mod_proxy_ajp within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello! I'm using Apache/2.2.3, which proxies requests to a Tomcat 5.5 using mod_proxy_ajp. Since the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello!
I'm using Apache/2.2.3, which proxies requests to a Tomcat 5.5 using mod_proxy_ajp. Since the pages dynamically produced by Tomcat change with a regular interval, I would like to cache all requests starting with /market for 5 minutes. I've setup mod_mem_cache but it does not seems to work (no caching is done). Under you will find the pieces of configuration regarding mod_proxy_ajp, mod_cache and mod_mem_cache (by the way, all three modules are loaded in a separated file). Do you see some error in this configuration? <IfModule mod_cache.c> <IfModule mod_mem_cache.c> CacheEnable mem /market MCacheSize 65096 MCacheMaxObjectCount 200 MCacheMinObjectSize 1 MCacheMaxObjectSize 8096 CacheDefaultExpire 300 CacheMaxExpire 300 </IfModule> </IfModule> <IfModule mod_proxy_ajp.c> ProxyRequests Off <Location / > ProxyPass ajp://localhost:8009/ ProxyPassReverse ajp://localhost:8009/ </Location> </IfModule> Thanks a lot for your help Patrick |
|
|||
|
Hello!
For information, I've changed from mod_mem_cache to mod_disk_cache and now it's working fine. Since I've now also read some threads suggesting the use of disk_cache over mem_cache, my problem is so solved. This is my disk_cache configuration: <IfModule mod_cache.c> <IfModule mod_disk_cache.c> CacheEnable disk /market/ ProxyPreserveHost On CacheIgnoreCacheControl On CacheIgnoreNoLastMod On CacheRoot /tmp/cache CacheDefaultExpire 300 CacheMaxExpire 300 </IfModule> </IfModule> Thanks and regards, Patrick |