Hi,
This requires some amount of development work. We added an additional
header to the response header, X-Cache-Stat. In file mod_cache.c, the
following changes were made. The actual line numbers may differ
depending on your version of the code.
465a477,480
/*mbenjamin:
Andrew Dixon wrote:
Hi All,
I have enabled mod_cache and I'm using mem caching (mod_mem_cache) as
my caching type, but how can I check if it is actually doing anything.
Is there anyway to see what is in the cache, being served from the
cache, what the cache hit rate is, etc...???
There
Hi Manik,
Can you explain how you did this?
Thanks
Andrew
2008/11/5 Manik Taneja [EMAIL PROTECTED]
Andrew Dixon wrote:
Hi All,
I have enabled mod_cache and I'm using mem caching (mod_mem_cache) as my
caching type, but how can I check if it is actually doing anything. Is there
anyway to
Hi All,
I have enabled mod_cache and I'm using mem caching (mod_mem_cache) as my
caching type, but how can I check if it is actually doing anything. Is there
anyway to see what is in the cache, being served from the cache, what the
cache hit rate is, etc...???
Thanks
Kind regards,
Andrew.
Hi All-
Quick question with regard to mod_cache. I have it caching some streamed
images to local disk. This works fine when the URL includes the script name,
i.e. index.php?arg1=1, etc.
How, besides throwing a rewrite in, can I have it cache calls to /?arg1=1 ?
Thanks-
Pete
Hi
I have an issue with my mod_cache : its works perfectly for all my pages except
my homepage !
I have a website : http://www.mysite.com/ with an index.php
if I call http://www.mysite.com/index.php : the cache works fine
but if I call http://www.mysite.com/ the cache don't work even if it is
On Sun, Mar 2, 2008 at 5:41 AM, [EMAIL PROTECTED] wrote:
Hi
I have an issue with my mod_cache : its works perfectly for all my pages
except
my homepage !
I have a website : http://www.mysite.com/ with an index.php
if I call http://www.mysite.com/index.php : the cache works fine
but
Hello
I'm trying to get mod_cache and mod_disk_cache to work correctly.
Problem summary is that disk cache is unable to overwrite previously
cached content (on disk) for the same url.
I run httpd 2.2.8 on windows XP.
my very basic setup:
LogLevel warn
IfModule mod_cache.c
IfModule
: Tuesday, January 15, 2008 9:51 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] mod_cache
Apache 2.2.x
I would like to request that mod_cache have an additional parameter
added to it.
Example:
CacheCleanRequest /cleanCache/
If you want to remove items from the cache so
Apache 2.2.x
I would like to request that mod_cache have an additional parameter
added to it.
Example:
CacheCleanRequest /cleanCache/
If you want to remove items from the cache so that they can be refreshed
by a later request you simply pre append the URL that was provided to
the
On Jan 15, 2008 10:51 AM, Campbell, Lance [EMAIL PROTECTED] wrote:
I know you have a mechanism in place to clear a cache entry based on adding
attributes to a headers requests. This just seems to be a much simpler
approach to clearing cached content.
Hmmm... Inventing a new technique, new
On Jan 15, 2008 12:16 PM, Campbell, Lance [EMAIL PROTECTED] wrote:
Joshua,
There is? I did not know mod_cache would clear out content based on a
higher level URL.
Ok. I see your point. But I think this type of mass-change to the
cache is much better performed out-of-band. In other words, if
University of Illinois
217.333.0382
http://webservices.uiuc.edu
-Original Message-
From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 1:53 AM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] mod_cache
Yes you did.
http://issues.apache.org/bugzilla
University of Illinois
217.333.0382
http://webservices.uiuc.edu
-Original Message-
From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 1:53 AM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] mod_cache
Yes you did.
http://issues.apache.org
: Campbell, Lance [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 9 janvier 2008 18:03
À : users@httpd.apache.org
Cc : Axel-Stephane SMORGRAV
Objet : RE: [EMAIL PROTECTED] mod_cache
You mentioned applying the fixes from 2.2 to 2.0. Would I get the source code
for mod_cache.so and mod_disk_cache.so from
of Illinois
217.333.0382
http://webservices.uiuc.edu
-Original Message-
From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 10:42 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_cache
Both the max-age=0 and the no-cache request
Message-
From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 11:15 AM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] mod_cache
Look at http://issues.apache.org/bugzilla/show_bug.cgi?id=19441
There you will find a patch against 2.0.59 that fixes
I think I found an issue with mod_cache. Where do I go to post a
question to the development group for this mod?
Thanks,
Lance Campbell
Project Manager/Software Architect
Web Services at Public Affairs
University of Illinois
217.333.0382
http://webservices.uiuc.edu
reported.
-ascs
De : Campbell, Lance [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 9 janvier 2008 07:44
À : users@httpd.apache.org
Objet : [EMAIL PROTECTED] mod_cache
![endif]--
I think I found an issue with mod_cache. Where do I go to post a question
Hi, All.
To provide User - Friendly URL on my site, I'm using a PHP script +
mod_rewrite directive, that rewrites all requests to the index.php. How I
can use mod_cache module to cache requests in that case?
Problem is that mod_cache caches only first request to index.php. Probably,
I can add
Hi,
I'm trying to get mod_cache to work, but doesn't seem to cache directory index
files. Using telnet I sent the following simple requests, i.e. just the
following lines and the appropriate Host: header, nothing else.
GET /index.html HTTP/1.0 works as expected. error log after first request:
I'm proxying requests to a backend server, and using mod_cache to cache.
I've noticed on the first request, I get the Server header from my
backend, and every request that hits cache shows the frontend Server
header, as below:
srv-08 ~ # curl -o /dev/null -D - http://...; -s
HTTP/1.1 200 OK
On 08/10/2007, Ian P. Christian [EMAIL PROTECTED] wrote:
I'm proxying requests to a backend server, and using mod_cache to cache.
I've noticed on the first request, I get the Server header from my
backend, and every request that hits cache shows the frontend Server
header, as below:
Sherwood [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 20 septembre 2007 03:56
À : users@httpd.apache.org
Objet : [EMAIL PROTECTED] mod_cache question
Hello,
I was looking at mod_cache and was wondering people's opinions on it.
We are serving up dynamic content using Apache, mod_jk and tomcat.
The most
Hello,
I was looking at mod_cache and was wondering people's opinions on it.
We are serving up dynamic content using Apache, mod_jk and tomcat.
The most of our hits will come from 3-6 pages.
Will mod_cache actually cache the dynamic pages for x period of time?
This would save us a ton of
On 8/11/07, wi [EMAIL PROTECTED] wrote:
Once again, thanks for the reply!
We've decided that we need the CacheIgnoreQueryString ability enough to go
with the current source of the server. We built it last night per the
developer instructions and have been testing it all day. It works well, so
Once again, thanks for the reply!
We've decided that we need the CacheIgnoreQueryString ability enough to go
with the current source of the server. We built it last night per the
developer instructions and have been testing it all day. It works well, so
we're going into production with it.
Is
Hi all
We've made progress with our caching situation. However, we've discovered a
problem when caching for urls containing query strings.
When the url does not contain a query string, the object is cached as
expected, and the debug logging supports this. On the other hand, when the
url contains
Hello,
I'm currently using Apache v 2.2.4 as a frontend for my Tomcat server (I
use mod_jk for this).
I use mod_disk_cache to cache stuff from Tomcat. I have tested that if I
shutdown Tomcat, all the cached content will be served to my browser
until the cache is cleaned/about the be refreshed.
Thanks for the prompt reply - much appreciated.
This confirmed what my experimentation showed, so I've come up with a
solution that, while not quite ideal, seems to be working.
I've created a rewrite matching the user_score portion of the uri, and
send only these requests to a new virtual host,
On 8/10/07, wi [EMAIL PROTECTED] wrote:
Invalid command 'CacheIgnoreQueryString', perhaps misspelled or defined by a
module not included in the server configuration
This seems strange, since the server reports:
Server version: Apache/2.2.4 (Unix)
Server built: May 3 2007 13:07:14
Hi again
I have a REST-based application that is getting quite loaded. I need to
begin caching some dynamically generated png files that are created by the
command:
/users/id/gamesgame-id/user_score
Ideally, I'd like to create a caching directive along the following lines:
CacheEnable disk
On 8/9/07, wi [EMAIL PROTECTED] wrote:
Hi again
I have a REST-based application that is getting quite loaded. I need to
begin caching some dynamically generated png files that are created by the
command:
/users/id/gamesgame-id/user_score
Ideally, I'd like to create a caching directive
Has anyone had problems in the past with Apache mod_cache storing
incomplete versions of files such as PDF's, and if so did you manage
to resolve it?
The problem is intermittent, and I can confirm PDF's from the origin
source are OK.
I would be interested in any combination of setup and version
Although I've followed all the mod_cache (mem and disk) recipes I could find, I
still can't seem to get caching to work for my setup. Is there any way to get
some logging out of the caching modules so that I can see what's going on?I
can't seem to find anything wrong with my config (I tried some
HelloI'm trying to figure out if my simple mod_cache setup is
working. I compiled the mod_cache modules (mod_cache, mod_disk_cache
and mod_mem_cache) and put together a simple configuration. The server
starts up without a murmur, but I'm not sure that the caching is
actually taking place.
In my
Hello
I'm trying to figure out if my simple mod_cache setup is working. I compiled
the mod_cache modules (mod_cache, mod_disk_cache and mod_mem_cache) and put
together a simple configuration. The server starts up without a murmur, but
I'm not sure that the caching is actually taking place.
In
I'm doing some testing with mod_cache, using disk cache. What I've noticed
is that if I hit example.com/index.*, it will cache it and serve it
from the cache as well. However, if I just go to http://www.example.com,
it isn't cached.
This happens with any index page served without giving the name
On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
I'm doing some testing with mod_cache, using disk cache. What I've noticed
is that if I hit example.com/index.*, it will cache it and serve it
from the cache as well. However, if I just go to http://www.example.com,
it isn't cached.
This happens
Here's the log for no index in the URL:
[Tue May 15 15:53:41 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Tue May 15 15:53:41 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /
That will just keep repeating, nothing ever shows up as being served.
And with:
Sorry, here's the http headers:
HTTP/1.1 200 OK
Date: Wed, 30 May 2007 23:28:01 GMT
Server: Apache/2.2.4
Last-Modified: Wed, 16 May 2007 20:21:33 GMT
ETag: 134003-2702-189fcd40
Accept-Ranges: bytes
Content-Length: 9986
Cache-Control: max-age=300
Expires: Wed, 30 May 2007 23:33:01 GMT
On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
Sorry, here's the http headers:
HTTP/1.1 200 OK
Date: Wed, 30 May 2007 23:28:01 GMT
Server: Apache/2.2.4
Last-Modified: Wed, 16 May 2007 20:21:33 GMT
ETag: 134003-2702-189fcd40
Accept-Ranges: bytes
Content-Length: 9986
Cache-Control: max-age=300
That isn't being cached. I just hit / a few times, here's all I get:
[Wed May 30 19:38:34 2007] [debug] mod_cache.c(129): Adding CACHE_SAVE
filter for /
[Wed May 30 19:38:34 2007] [debug] mod_cache.c(136): Adding
CACHE_REMOVE_URL filter for /
[Wed May 30 19:38:38 2007] [debug] mod_cache.c(129):
On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
That isn't being cached.
Are you doing anything fancy like mod_rewrite?
I don't see any explanation. There are some cache fixes going into the
next version of 2.2, but I'm not sure whether any of them would help
you.
Joshua.
Nope, nothing special at all. It's even the same way if I do something
like example.com/blah/. After searching Google, I think I'm the first
person to have this issue.
Matt
On Wed, 30 May 2007, Joshua Slive wrote:
On 5/30/07, Matt Lehner [EMAIL PROTECTED] wrote:
That isn't being cached.
Has anyone looked at how applicable to 2.0.x the 10 bullets in the
what can be cached section of the following document:
http://httpd.apache.org/docs/2.2/caching.html
Any key differences jump out for anyone?
--
Eric Covener
[EMAIL PROTECTED]
On 2/14/07, Eric Covener [EMAIL PROTECTED] wrote:
Has anyone looked at how applicable to 2.0.x the 10 bullets in the
what can be cached section of the following document:
http://httpd.apache.org/docs/2.2/caching.html
Any key differences jump out for anyone?
Other than the fact that caching
Hi,
I have some problems with the behavior of mod_cache.
I'm running httpd-2.2.4 under FreeBSD 6.2, and I'm trying to get
mod_cache (both mem_cache, and disk_cache) to work to optimize
performance. Unfortunately our users often requests static files with
query strings, there are explanations for
I'm trying to get a mod_disk_cache setup to proxy the content
generated by a proxy-balanced backend but am running into some
problems.
Here is a snip of the .conf
CONF
IfModule mod_cache.c
IfModule mod_disk_cache.c
UseCanonicalName On
CacheRoot /pagecache
Is there a better list to use for questions about core modules?
I'm using mod_cache on Apache 2.0.55 (Debian Sid) with the following
config:
ProxyViaOn
CacheRoot /var/cache/apache2/proxy
CacheSize 1000
CacheMaxExpire 300
On 5/19/06, Bill Moseley [EMAIL PROTECTED] wrote:
Is there a better list to use for questions about core modules?
Nope. This is the one.
When I first start up Apache files are cached. But, once they expire
then they are no longer cached and *always* fetch from the back end
server. It's
We are looking into caching images on
Apache that are proxied from a backend server. However, it looks
like a lot of traffic will still go to the backend.
We have Apache configured like this:
IfModule mod_cache.c
IfModule mod_mem_cache.c
CacheIgnoreCacheControl
On
Correction, 304 (not 302)
[Mon May 08 20:36:32 2006] [debug] mod_cache.c(114):
incoming request is asking for a uncached version of /portal/msa/images/ochregradient.gif,
but we know better and are ignoring it
[Mon May 08 20:36:32 2006] [debug] mod_cache.c(446):
cache:
IETF RFC2616 (www.ietf.org)
-ascs
-Original Message-
From: Michael Conlen [mailto:[EMAIL PROTECTED]
Sent: Monday, May 01, 2006 5:19 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] mod_cache
I'm considering using mod_cache for a server but I haven't seen any
documentation
I'm considering using mod_cache for a server but I haven't seen any
documentation on how the cache handles updated files. Some of the
files are updated on a semi-regular basis and the majority of it is
never updated (though may be deleted).
can someone toss me a pointer to the appropriate
On 5/1/06, Michael Conlen [EMAIL PROTECTED] wrote:
I'm considering using mod_cache for a server but I haven't seen any
documentation on how the cache handles updated files. Some of the
files are updated on a semi-regular basis and the majority of it is
never updated (though may be deleted).
can
:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 3:58 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] mod_cache: CacheDefaultExpire is ignored?
Hello,
I use apache 2.0.55 on Windows and I am experiencing a problem using mod_cache.
It is my intention to use a memory cache for images
, March 09, 2006 10:34 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_cache: CacheDefaultExpire is ignored?
Thanks for the explanation! At least this means that the description of
CacheDefaultExpire is somewhat misleading , I think.
I don't use a reverse proxy and I have little
I configured apache 2.0 with weblogic cluster, but mod_cache no effect
with jsp. Here is httpd.conf snippet,
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule weblogic_module
Hello,
I still have the problem that script-generated images do not get cached.
I run apache 2.0.54-5 inside Debian Sarge with mod_fastcgi 2.4.0-5.
What do I need in my configuration to get images cached by mod_cache?
I tought this is enough, but obviously it isn't:
IfModule mod_cache.c
On 12/9/05, Dick Snippe [EMAIL PROTECTED] wrote:
we use apache-2.0.x as a reverse caching proxy, using mod_cache,
mod_mem_cache, mod_proxy and mod_proxy_http.
It wouldn't surprise me terribly if mod_mem_cache was broken in 2.2.
It has received much less TLC than mod_disk_cache. Given the lack
Hi,
we use apache-2.0.x as a reverse caching proxy, using mod_cache,
mod_mem_cache, mod_proxy and mod_proxy_http.
Basically by saying
CacheEnable mem /
ProxyPass / http://tomcatserver:/
(okay, there is some more configuration involved, but this is the basic
idea.
On 11/23/05, Luc Levesque [EMAIL PROTECTED] wrote:
Hello,
Let me start off by apologizing if this list doesn't handle questions
like this but I hoped it might seeing as it's about standard Apache modules.
We currently run mod_rewrite successfully on this URL:
I do something similar but the only way I have been able to make it work is by
doing a subrequest, i.e. having the VH make a request to itself (or another
VH for that matter)
Here is an example to give you the general idea, at the expense of an extra
HTTP request:
VirtualHost 1.2.3.4
#
Hello,
Let me start off by apologizing if this list doesn't handle questions
like this but I hoped it might seeing as it's about standard Apache modules.
We currently run mod_rewrite successfully on this URL:
/travel/United%20States/t.html
rewrites to:
aching would be "Expires:
Thu,1Jan197000:00:00 GMT" or "Cache-Control: no-store"
or both. In 2.0.54, mod_mem_cache does not work (at least on
Solaris).
-ascs
From: Praveen Alavilli
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 19, 2005 12:57
PMTo: users@httpd.apache.org
Hi Guys,
Just wanted to find out if anyone is using mod_cache and what their
experiences are. The web site says it's still in experimental mode -
though the page might be an outdated one.
thanks for any info
Praveen
-
On 10/19/05, Praveen Alavilli [EMAIL PROTECTED] wrote:
Hi Guys,
Just wanted to find out if anyone is using mod_cache and what their
experiences are. The web site says it's still in experimental mode - though
the page might be an outdated one.
At apache.org, we use mod_cache to front-end a
Hi,
As part of implementing a short term performance improvement, we're
looking at using a caching reverse proxy.
In essence we need to be able to disable mod_cache on a reverse proxy
configuration for certain classes of users only.
Users are able to be identified via Cookie and hence we can
On Thu, Aug 25, 2005 at 04:03:53PM +1000, Steve McInerney wrote:
As part of implementing a short term performance improvement, we're
looking at using a caching reverse proxy.
In essence we need to be able to disable mod_cache on a reverse proxy
configuration for certain classes of users
or something like that.
-ascs
-Original Message-
From: Steve McInerney [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 8:04 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] mod_cache and conditional disabling
Hi,
As part of implementing a short term performance improvement
On Thu, Aug 25, 2005 at 10:30:19AM +0200, Axel-Stéphane SMORGRAV wrote:
It is possible by doing a bit of rewriting and tweaking of URLs.
Here's the general idea:
RewriteCond %{HTTP_COOKIE}MYCOOKIE
RewriteRule ^(.*)$ /DONTCACHE$1
ProxyPass /DONTCACHE http://backend.foo.bar/
@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_cache and conditional disabling
On Thu, Aug 25, 2005 at 10:30:19AM +0200, Axel-Stéphane SMORGRAV wrote:
It is possible by doing a bit of rewriting and tweaking of URLs.
Here's the general idea:
RewriteCond %{HTTP_COOKIE}MYCOOKIE
On Thu, Aug 25, 2005 at 01:56:07PM +0200, Axel-Stéphane SMORGRAV wrote:
OK What about this, at the expense of an additional GET :
VirtualHost www.foo.bar
RewriteCond %{HTTP_COOKIE} MYCOOKIE
RewriteRule ^(.*)$ http://cache.foo.bar$1 [P]
ProxyPassReverse / http://cache.foo.bar/
Uh, yeah. T'was the other way around.
Well: Houston, we've got a solution !
-ascs
-Original Message-
From: Colm MacCarthaigh [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 25, 2005 2:04 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] mod_cache and conditional disabling
PROTECTED] mod_cache and conditional disabling
On Thu, Aug 25, 2005 at 01:56:07PM +0200, Axel-Stéphane SMORGRAV wrote:
OK What about this, at the expense of an additional GET :
VirtualHost www.foo.bar
RewriteCond %{HTTP_COOKIE}MYCOOKIE
RewriteRule ^(.*)$ http://cache.foo.bar$1
Hi, I'm running httpd 2.0.54 on Solaris with mod_mem_cache and
mod_deflate.
I noticed that in less than 2d 10h of uptime, we started getting broken
images on one of our pages. Packet analysis showed that httpd was
returning a 304 Not Modified response to requests for images that were
not
77 matches
Mail list logo