A few weeks ago I got a telephone call from my web host letting me know that "one of your Movable Type CGI scripts is using up half the resources of the server and would you please disable the script before we find it necessary to close your account?" Don't you just love news like that? Fortunately, it all got sorted out within a couple of hours; here's the scoop.
This is the line of code that can bring your server to its knees:
The solution is easy. Really easy.
1 Make sure you have a version of
mt-site.js on your server, in the directory of the blog whose code you are editing. If you don't, follow these instructions from the Six Apart Knowledge Base.*
2 Put the following line of code in the header section of your Individual Entry Archive Template:
3 Remove the following code from the comments section of your Individual Entry Archive Template:
4 Save and rebuild your Individual Entry Archive.
20 30 years older...)
*In case the 6A site is down, the instructions are the following:
1. In your weblog, on the Templates > Indexes tab, select Create New Index Template.
3. Make sure that "Rebuild this template automatically when rebuilding index templates" is checked, and then click SAVE.
4. Click Templates in either the left sidebar or the breadcrumbs menu to return to the Templates listing.
6. Select Refresh Template(s) from the More Actions dropdown menu, and click GO.
After creating this new template, you'll need to rebuild it to generate the mt-site.js file in your blog path.