« MTTruncateURL Plugin | Main | A bunch of fixes for MT 3.121 »

MT-ShrinkFInfo

A Tool for Shrinking an Enlarged FileInfo DB

ShinkFInfo.zip

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.

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

  1. Please check first that DataSource of mt.cfg is specified with a full path. (e.g. DataSource /FULL/PATH/TO/DB)

  2. Unzip the MT-ShrinkFInfo archive into a temporary directory.

  3. 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
    

    NOTE: We recommend you to change ShrinkFInfo to another name as you like.

  4. And change the permission of mt-shrinkfinfo.cgi to be able to execute as a CGI script (chmod 755 or 700 in unix parlance).

  5. Go to the management screen, and just click "ShrinkFInfo Plugin" to shrink fileinfo.db.

    shrinkfinfo.gif

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)

TrackBack

TrackBack URL for this entry:
http://as-is.net/mt/en_US/mt-tb.cgi/2

Listed below are links to weblogs that reference MT-ShrinkFInfo:

» MT-ShrinkFInfo Plugin from Six Apart Professional Network
Hirotaka Ogawa has released Ogawa::Hacks: MT-ShrinkFInfo, a plugin to shrink the... [Read More]

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)