httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Federico>
Subject [users@httpd] Apache, Zope/Plone, cache question
Date Wed, 28 Jan 2009 13:22:33 GMT
Hi All,
i have a question about Apache cache (mod_cache). My virtual host is the 

 <VirtualHost *:80>
  UseCanonicalName On

  <IfModule mod_cache.c>
    CacheDefaultExpire 36000
    CacheEnable mem /
    CacheIgnoreCacheControl On
    CacheIgnoreNoLastMod On
    CacheMaxExpire 7200
    CacheStoreNoStore On
    <IfModule mod_mem_cache.c>
      MCacheSize 524288
      MCacheMaxObjectCount 100000
      MCacheMinObjectSize 1
      MCacheMaxObjectSize 200000
  <IfModule mod_proxy.c>
    <Proxy balancer://mycluster>
      BalancerMember route=8081
      BalancerMember route=8082
      BalancerMember route=8083
    ProxyVia On
    ProxyPass / 
    ProxyPassReverse / 
  CustomLog /var/log/apache2/access.log combined
  ErrorLog /var/log/apache2/error.log

On ports 808x there are three zope servers. 

In this situation, i supposed that when a public page is called (at second 
time, obviously), only apache should works to answer to my request. Looking 
with tcpdump i found that the reality is different: in some cases, apache 
asks to zope the same page, before the page was expired. 
Is it a fault of my configuration or is it the natural way?

After that, i tested with two different browsers (firefox 3 and konqueror) 
asking the same page, and i found other thing that not match with my mind: 
when i ask the main page of the site with the second browser (thinking the 
page was in cache), apache asks to zope the page.
It seems cache works using a different cache for each client. Is it real?

For debug, i tried previous tests without the balancer and/or UseCanonicalName 
directives, but nothing changes. I looked apache log too and there's no 
error, and all needed modules are loaded correctly.

Thanks for attenction.

dott. Federico Guizzardi
Reflab S.r.l.
Via della Pace n.1, 56021 Cascina (PI), Italy
phone  (+39) 050 754193
fax  (+39) 050 754707

View raw message