httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pi...@goldfisch.at
Subject Re: [users@httpd] check if mod_cache is working ?
Date Mon, 10 Feb 2003 23:14:17 GMT

sorry. While I checked the logs I didnt check the right logs !!

The right logs say (LogLevel debug)

[Tue Feb 11 00:10:51 2003] [debug] mod_cache.c(118): cache: URL /cgi-bin/t.pl is being handled
by mem,mem
[Tue Feb 11 00:10:51 2003] [debug] mod_cache.c(202): cache: no cache - add cache_in filter
and DECLINE
[Tue Feb 11 00:10:51 2003] [debug] mod_cache.c(436): cache: running CACHE_IN filter
[Tue Feb 11 00:10:51 2003] [debug] mod_cache.c(582): cache: response is not cachable 


So mem_cache is obviously working but not caching this special object. I'll look into this.

sorry again,
peter



On Mon, Feb 10, 2003 at 06:15:38PM +0100, pilsl@goldfisch.at wrote:
> I enabled mod_expire and mod_mem_cache in my config.
> 
> A simple perl-script loads content from a database and prints it.
> 
> If mod_cache is enabled and all headers are correct, then the script
> should only be executed once and later requests to this script should
> be answerered from mem-cache.
> 
> test is simple:
> i) request
> ii) change content in database
> iii) request again
> 
> The result is, that there is no caching in progress.
> 
> ========================
> $ wget -S -O - x1.goldfisch.at/cgi-bin/t.pl
> --18:11:22--  http://x1.goldfisch.at/cgi-bin/t.pl
>            => `-'
> Connecting to x1.goldfisch.at:80... connected!
> HTTP request sent, awaiting response... 200 OK
> 2 Date: Mon, 10 Feb 2003 17:10:08 GMT
> 3 Server: Apache
> 4 Cache-Control: max-age=86400
> 5 Expires: Tue, 11 Feb 2003 17:10:08 GMT
> 6 Connection: close
> 7 Content-Type: text/html; charset=UTF-8
> 8
>  
>     0K -><?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html
>         PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
>         "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head><title>Unicodetest</title>
> </head><body>
> 
> new content<br>
> should not be seen now :)<br>
> 
> </body></html>
> 
> ================================
> 
> 
> The config is:
> 
> global:
>  CacheEnable mem /
>  MCacheSize 4096
>  MCacheMaxObjectCount 100
>  MCacheMinObjectSize 1
>  MCacheMaxObjectSize 2048
> 
> 
> vhost:
>   ExpiresActive On
>   ExpiresDefault "access plus 1 days"
>   CacheEnable mem /
> 
> 
> anyone has an idea ? Is there something wrong in my config or
> something wrong in my thinking ?
> 
> thnx
> peter
> 
> 
> -- 
> mag. peter pilsl
> IT-Consulting
> tel: +43-699-1-3574035
> fax: +43-699-4-3574035
> pilsl@goldfisch.at
> http://www.goldfisch.at
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

-- 
mag. peter pilsl
IT-Consulting
tel: +43-699-1-3574035
fax: +43-699-4-3574035
pilsl@goldfisch.at
http://www.goldfisch.at

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message