]> granicus.if.org Git - apache/commit
Get a rid of the oversized cache.
authorAndré Malo <nd@apache.org>
Sun, 27 Jul 2003 22:12:49 +0000 (22:12 +0000)
committerAndré Malo <nd@apache.org>
Sun, 27 Jul 2003 22:12:49 +0000 (22:12 +0000)
commitd4b1817c38a4a2d2e19498cb0ecf129e204dc8c6
tree5a3521ed8cc6eee95b7ba73aea68a8da477fa6b5
parentb863e3a2db7a85e71f541aae4142556b709365e8
Get a rid of the oversized cache.
The new map-cache consists of a simple two-tiered apr_hash structure.
cachep->maps contains entries for each map, which point to a hash with
the actual values (map->entries).

Each map->entries hash lives in a subpool of cachep->pool.
The mtime is stored per map and if the map expires, we just clear
map->pool and create a fresh map->entries hash structure.

This removes a big chunk of code from mod_rewrite, improves readability and
even the memory footprint of the cache.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100801 13f79535-47bb-0310-9956-ffa450edef68
modules/mappers/mod_rewrite.c