Forum Moderators: phranque
I have a question regarding the mod_cache and the mod_disk_cache in apache2. I just started testing the cache with a single webpage included 3 high-resolution pictures.
This is a little snapshot of the logfile where Loglevel is set to debug:
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /
[Fri Sep 07 13:24:47 2007] [debug] mod_disk_cache.c(477): disk_cache: Recalled cached URL info header http://example.com:80/pics/OpenLife-cover-highres1.png?
[Fri Sep 07 13:24:47 2007] [debug] mod_disk_cache.c(750): disk_cache: Recalled headers for URL http://example.com:80/pics/OpenLife-cover-highres1.png?
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(261): cache: running CACHE_OUT filter
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(275): cache: serving /pics/OpenLife-cover-highres1.png
[Fri Sep 07 13:24:47 2007] [debug] mod_disk_cache.c(477): disk_cache: Recalled cached URL info header http://example.com:80/pics/sim3dnew-highres.png?
[Fri Sep 07 13:24:47 2007] [debug] mod_disk_cache.c(750): disk_cache: Recalled headers for URL http://example.com:80/pics/sim3dnew-highres.png?
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(261): cache: running CACHE_OUT filter
[Fri Sep 07 13:24:47 2007] [debug] mod_cache.c(275): cache: serving /pics/sim3dnew-highres.png
It seems to me that the cache is working! But when I'm running som tests against the website I get the same response time with the cache enabled and with the cache disabled.
Shouldn't I get a faster response time with the cache enabled? If Im not wrong, that's the whole idea with the cache?
// Duja
[edited by: jdMorgan at 8:21 pm (utc) on Sep. 7, 2007]
[edit reason] example.com [/edit]