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 41362] - mod_disk_cache and mod_include conflict generating incorrect pages from cache
Date Mon, 15 Jan 2007 12:33:23 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=41362>.
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=41362





------- Additional Comments From dev-apache.org@humph.com  2007-01-15 04:33 -------
(In reply to comment #2)
> Please attach also an error log in debug mode for two requests against 2.2.4
> (first one which work and second one from cache which fails).

Thanks for looking at this!

The logs (trimmed of day and year to shorten the lines, note the lines with GG are my extra
log 
described in my original report:

Cache cleared. first request (correct data served):

[13:18:10] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /new/test.shtml
[13:18:10] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /new/test.shtml
[13:18:10] [debug] mod_cache.c(609): cache: Caching url: /new/test.shtml
[13:18:10] [debug] mod_cache.c(615): cache: Removing CACHE_REMOVE_URL filter.
[13:18:10] [debug] mod_cache.c(658): cache: Added date header
[13:18:10] [debug] mod_disk_cache.c(964): disk_cache: Stored headers for URL http://
www.elfo.org.localhost:80/new/test.shtml?
[13:18:10] [debug] mod_disk_cache.c(999): GG cache_disk: read from server [<html>\r\n<head>\r\n
\t<title>cache-bug-test</title>\r\n</head>\r\n<body>\r\n<p>just
before the exec call</p>\r
\n<!--#exec cmd="./foo.sh" -->\r\n<p>just after the exec call</p>\r\n\r\n</body>\r\n</html>\r
\n]
[13:18:10] [debug] mod_disk_cache.c(999): GG cache_disk: read from server [bar\n]
[13:18:10] [debug] mod_disk_cache.c(999): GG cache_disk: read from server []
[13:18:10] [debug] mod_disk_cache.c(999): GG cache_disk: read from server [\r\n<p>just
after the 
exec call</p>\r\n\r\n</body>\r\n</html>\r\n]
[13:18:10] [debug] mod_disk_cache.c(999): GG cache_disk: read from server [(null)]
[13:18:10] [debug] mod_disk_cache.c(1058): disk_cache: Body for URL http://www.elfo.org.localhost:
80/new/test.shtml? cached.
[13:18:10] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /favicon.ico
[13:18:10] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /favicon.ico
[13:18:10] [error] [client 127.0.0.1] File does not exist: /Users/g/Documents/Projects/HTML/elfo-site/
elfo.org/trunk/favicon.ico


second request (incorrect data served from cache, but note too that the cache file itself
contains 
incorrect data):

[13:18:41] [debug] mod_disk_cache.c(477): disk_cache: Recalled cached URL info header http://
www.elfo.org.localhost:80/new/test.shtml?
[13:18:41] [debug] mod_disk_cache.c(750): disk_cache: Recalled headers for URL http://
www.elfo.org.localhost:80/new/test.shtml?
[13:18:41] [debug] mod_cache.c(263): cache: running CACHE_OUT filter
[13:18:41] [debug] mod_cache.c(277): cache: serving /new/test.shtml
[13:18:41] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /favicon.ico
[13:18:41] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /favicon.ico
[13:18:41] [error] [client 127.0.0.1] File does not exist: /Users/g/Documents/Projects/HTML/elfo-site/
elfo.org/trunk/favicon.ico

SSI enabled in main config by:

<IfModule mime_module>
[...]
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>



virtual host configuration:

NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /Users/g/Documents/Projects/HTML/elfo-site/elfo.org/trunk
    ServerName www.elfo.org.localhost
    ErrorLog logs/www.elfo.org.localhost-error_log
    CustomLog logs/www.elfo.org.localhost-access_log common
    UseCanonicalName On

    CacheEnable disk /
    CacheRoot /var/www/cache
    CacheIgnoreNoLastMod On
    CacheDefaultExpire 3600
    CacheMaxExpire 3600
    CacheMinFileSize 64
    CacheMaxFileSize 64000
    CacheDisable /mail
    CacheDisable /Webmail
    CacheDisable /webmail

<Directory "/Users/g/Documents/Projects/HTML/elfo-site/elfo.org/trunk">
    Options Includes Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AddHandler cgi-script .cgi
</Directory>

</VirtualHost>

I have done further research on the r470455 which saves the correct body data, but it does
not serve 
the cached copy as it gets stuck in open_header_timeout until the timeout of 10 seconds fires.

-- 
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