Re: mod_cache and caching .php with query strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

http://httpd.apache.org/docs/current/caching.html#overview

"""... 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:

FallbackResource?
http://httpd.apache.org/docs/current/mod/mod_dir.html#fallbackresource

i

-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux