Htcache uris

From usenix.org.uk
Jump to: navigation, search

Every now and then mod_disk_cache might consume a lot of cache directory space and it might leave you wondering what's going on.

For this reason I've put a very simple script together to dump the URI contents of the cache. It's very simple and very easy to use, just feed in the path names to the .header files.

find /cachedir -name '*.header' | perl cache_uris.pl

The most obvious thing to note is that the start of the URI us 48 bytes into the file. That point to the ? can be regarded as a URI.

This script is available in the code directory. cache_uri.pl, naturally it's signed for authenticity.


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox