MT-ShrinkFInfo
A Tool for Shrinking an Enlarged FileInfo DB
If using Movable Type 3.1 with BerkeleyDB, you will encounter a problem that db/fileinfo.db is enlarging whenever you repeat rebuilding. This problem makes it slow to rebuild contents, and even worse it may cause HTTP Error 500 which means Internal Server Error.
MT-ShinkFInfo allows you to shrink an enlarged db/fileinfo.db. It employs MT Perl API so as to provide a safer and easier method to shrink fileinfo.db, rather than removing it manually. And it also provides a plugin interface to invoke this easily from the management screen of Movable Type.
INSTALLATION
Please check first that DataSource of mt.cfg is specified with a full path. (e.g. DataSource /FULL/PATH/TO/DB)
Unzip the MT-ShrinkFInfo archive into a temporary directory.
Copy the ShrinkFInfo directory into the plugins directory under your MT home directory. The following is a reference image of directories.
mt + extlib + images + lib + php + plugins - ShrinkFInfo + plugin.pl + mt-shrinkfinfo.cgiNOTE: We recommend you to change ShrinkFInfo to another name as you like.
And change the permission of mt-shrinkfinfo.cgi to be able to execute as a CGI script (chmod 755 or 700 in unix parlance).
Go to the management screen, and just click "ShrinkFInfo Plugin" to shrink fileinfo.db.

SEE ALSO
Ogawa::Memoranda (totally in Japanese)
LICENSE
This code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.
AUTHOR & COPYRIGHT
Copyright 2004, Hirotaka Ogawa (hirotaka.ogawa at gmail.com)