Hi, Gaal Yahas!
On Thu, Jan 06, 2000 at 11:32:15PM +0200, you wrote the following:
> > need to load and parse htaccess files (sometimes even per request),
>
> I'm no expert in web servers, but this looks strange to me. Could
> you explain why there isn't some way for a user to signal the server
> that he had changed his .htaccess file? If this is really such a
> bottleneck, we can (it seems to me) change the semantics a bit and
> put the responsibility on the users' side.
This actually got me interested so I downloaded the source code for
Apache and looked. It indeed looks like it's parsing all the .htaccess
files each time for each request. I wonder maybe it'd be easier to
make a central cache of .htaccess files which would just be stat()'d
on each request and re-parsed only if their dates have changed. Like
mod_perl does for the perl files it loads (according to my
understanding).
Anyone familiar with the Apache source here? Does it have some kind of
a central shared memory area for sharing resources between all forked
kids (which is where such a cache would have to reside), or how does
it communicate with the kids anyway? Or does it at all?
--
Alex Shnitman | http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED] +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
Linux represents a best-of-breed UNIX, that is trusted in mission critical
applications, and - due to it's open source code - has a long term
credibility which exceeds many other competitive OS's.
-- Internal Microsoft memo
PGP signature