MT-ShrinkFInfo
A Tool for Shrinking an enlarged FileInfo DB for Movable Type 3.1.
Changes
- 0.01(2004.11.28):
- First Release.
- 0.02(2004.11.28):
- A fix to stop unnecessary shrinking if possible. A little bit of code cleanup.
- 0.03(2004.11.29):
- Add a plugin interface and an experimental access restriction using a cookie.
- 0.04(2004.12.10):
- A little bit improvement on the plugin user-interface.
Overview
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.cgi
{i} 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
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)
Attachments
- shrinkfinfo.gif (5.2 kB) - added by ogawa on 02/08/07 10:48:15.

