httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <>
Subject Re: [users@httpd] mod_cache and caching .php with query strings
Date Thu, 17 Feb 2011 09:11:23 GMT

----- Original Message -----
> Hi
> I'm using Debian's apache 2.2.26 with mod_fcgid for PHP. My CMS

Given that the latest available version is 2.2.17, that would
surprise me.

> Drupal
> rewrites all URLs so that they execute main index.php, e.g.
> http://localhost/node/1 -> http://localhost/index.php?q=node/1. The
> problem is that mod_disk_cache only caches the URL
> "http://localhost/index.php?" and as a result all Drupal pages are
> served as the first one that hit the cache. I tried explicitly adding
> "CacheIgnoreQueryString Off" but this doesn't help.
> Is this a bug?

Not really:

"""... mod_cache  is a URL mapping module, which means that if a URL
has been cached, and the cached version of that URL has not expired,
the request will be served directly by mod_cache.

This means that any other stages that might ordinarily happen in the
process of serving a request -- for example being handled by mod_proxy,
or mod_rewrite -- won't happen. But then this is the point of caching
content in the first place."""

> Regards,
> Ognyan Kulev

Is it possible that you do *not* use mod_rewrite?
And instead use:



Igor Galić

Tel: +43 (0) 664 886 22 883

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message