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 45045] New: mod cache storing/looking for the wrong key
Date Tue, 20 May 2008 15:16:29 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45045

           Summary: mod cache storing/looking for the wrong key
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: anders@emunityedge.se


I have configures mod mem cache as follows:

        ExpiresActive On
        ExpiresDefault "access plus 1 days"

        CacheEnable mem /
        MCacheSize 409600
        MCacheMaxObjectSize 150000

Everything seems fine but when I look at the debug log for repeat request to
the same file I see:

[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?
[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?

The ? at the end seems to be the issue. The key gets mangled somewhere because
if I make a request with ? on the end that too is cached and subsequent
requests are served from cache.

request for jpg? gives: (note no apparent difference)

[debug] mod_cache.c(131): Adding CACHE_SAVE filter for /jessicasimpson1.jpg
[debug] mod_cache.c(138): Adding CACHE_REMOVE_URL filter or
/jessicasimpson1.jpg
[debug] mod_cache.c(633): cache: Caching url: /jessicasimpson1.jpg?
[debug] mod_cache.c(639): cache: Removing CACHE_REMOVE_URL filter.
[info] mem_cache: Cached url:
ttp://proxy.starlounge.com:80/jessicasimpson1.jpg?

now request for both jpg and jpg? gives:

[debug] mod_cache.c(282): cache: running CACHE_OUT filter
[debug] mod_cache.c(296): cache: serving /jessicasimpson1.jpg

Seems this could be just a miss in a string parse.


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

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


Mime
View raw message