httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30370] - Pages cached in more than one cache remain stale although it is revalidated.
Date Mon, 05 Jun 2006 02:27:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30370>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30370





------- Additional Comments From tyamadajp@list.rakugaki.org  2006-06-05 02:27 -------
> Though not sure if it is the same cause, I'm having exactly the same issue ...

After reading first poster's message again, I guess my issue isn't exactly the 
same issue. My issue is that mod_cache never refreshes cached entry once 
initial cache expired. So access_log goes on like below:

  "GET /real/hello.php HTTP/1.0" 200 <-- query to backend
  "GET /hello.php HTTP/1.0" 200      <-- caches and returns cached response
  "GET /hello.php HTTP/1.0" 200      <-- cached response
  "GET /hello.php HTTP/1.0" 200      <-- cached response
  "GET /hello.php HTTP/1.0" 200      <-- cached response
  ...                                <-- time passes and expires
  "GET /real/hello.php HTTP/1.0" 200 <-- query to backend
  "GET /hello.php HTTP/1.0" 200      <-- don't cache and pass-thru response
  "GET /real/hello.php HTTP/1.0" 200 <-- query to backend
  "GET /hello.php HTTP/1.0" 200      <-- don't cache and pass-thru response
  "GET /real/hello.php HTTP/1.0" 200 <-- query to backend
  "GET /hello.php HTTP/1.0" 200      <-- don't cache and pass-thru response
  ...

I'm doing a reverse proxied configuration, and here's an excerpt from 
httpd.conf:

  <VirtualHost *:8080>
   CacheEnable mem /
   CacheIgnoreHeaders Set-Cookie
   MCacheSize 65535
   MCacheMaxObjectCount 8192
   MCacheMaxObjectSize 65535

   ProxyPass        / http://127.0.0.1/real/
   ProxyPassReverse / http://127.0.0.1/real/
   ProxyPreserveHost On
   ProxyTimeout 5
  </VirtualHost>

And the content of hello.fphp is:

  <?php
  header("Expires: " . date(DATE_RFC822, time() + 10));
  print_r($_SERVER);
  ?>

As you can see, this should expire in 10 seconds after cache is
made, and it does work as expected. But it never gets cached
after its first expiration, probably due to apache issue I posted above.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message