That could be solved by simply caching access data in memory. dnotify() also allows you to do proper reloading of ACLs, without having to stat() every file on hierarchy.
But Apache is not only meant for Linux. Other OSes do not provide these functionalities.
What's really harder is to apply all constraints in a fast and efficient way. I never benchmarked Apache on this, but I'd bet its not that fast nor efficient.
Posted Nov 16, 2010 21:21 UTC (Tue) by dlang (✭ supporter ✭, #313)
[Link]
under the covers, .htaccess files are not just access control files, they can contain any config options that can be in an apache config file, they just apply to that directory and it's subdirectories, discovered per-hit.
so yes, they are horribly inefficient
in terms of caching the combined contraints, that seems hard in the face of directories being moved around.
there's also the issue of the interaction with links and finguring out the 'true' path to a file.