You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Axel-Stéphane SMORGRAV <Ax...@europe.adp.com> on 2004/11/22 08:45:43 UTC

[users@httpd] RE :problems with mod_mem_cache

Your problem is most likely caused by not having a cache validator among the response headers. In order for the document to be cached, it must be served with at least one of the headers Last-Modified, Etag, Expires, and the Cache-Control and Pragma headers must not prevent the document from being cached.

If you set LogLevel to debug you will be able to trace all the decisions made by the cache modules, in the error log.

-ascs

-----Message d'origine-----
De : peter pilsl [mailto:pilsl@goldfisch.at] 
Envoyé : samedi 20 novembre 2004 23:51
À : users@httpd.apache.org
Objet : [users@httpd] problems with mod_mem_cache



I'd like to use mod_mem_cache to cache dynamically generated content 
(cgi) which comes with a correct Content-Length-field.

I created a testscript, which does hardly more than print out a 
random-number and a few sysdumps (1774 bytes in total). I would expect 
mod_mem_cache to cache the first generated page and then deliver the 
same page on all following request which should show me the same 
"random"-number at each request. For the number changes on each request 
I conclude the mod_mem_cache is not working.

Do I have a knot in my brain or did I misconfigure something

CacheEnable mem /
MCacheMaxObjectCount 13001
MCacheMaxObjectSize 400000
MCacheMaxStreamingBuffer 100000
MCacheMinObjectSize 500
MCacheRemovalAlgorithm GDSF
MCacheSize 64000


thnx,
peter

ps:
Is there any tool to "peek" inside the cache to see what is actually cached?


-- 
mag. peter pilsl
goldfisch.at
IT-management
tel +43 699 1 3574035
fax +43 699 4 3574035
pilsl@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


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