« A Peace to End All Peace | Main | Fast Rebuilds »

پیر 26 جنوری 2004Monday, January 26, 2004

Further Weblog Maintenance

When I changed the way trackbacks appear, I broke something as well. It turns out that when someone pings you, only the index templates are rebuilt automatically. Since I had the trackbacks in the individual entry pages, those were not rebuilt and hence did not show the recent pings from Kianoush.

First, I tried to do a server-side include of the trackback CGI file into my individual entry template. But that did not work for some reason. Therefore, I used Phil Rignalda’s hack which required adding a few lines of code in Trackback.pm MTBlPing.pm.

If I have broken anything or if you know a better solution, please let me know.

Another issue has been the delay that comments take to post. I timed the time from hitting the “Post” button to a refresh of the individual page to be about 35 seconds. That wasn’t good enough since we strive here for a better reader experience. I realized that about half the delay was caused by the MostVisited plugin which calculates the top 10 pages in terms of hits during the last 30 days. This is obviously not something that changes with every comment and it changes only a little in a day. So I used Eric James Stone’s suggestion:

  1. Create an index template with the code to list the most popular entries.
  2. Uncheck the box for “Rebuild this template automatically.”
  3. Link the template to a file.
  4. Use the MTInclude tag to include that file in whatever other templates you want. [Main Index template in my case – ZA]
  5. Set up a once-a-day (or other period) cron to rebuild that specific template.

To rebuild the template as a cron job required the mt-rebuild script.

As I was doing all this, I discovered MT Plugin Manager by David Raynes. It is supposed to make the install, upgrade and uninstall fairly automatic from a browser window. It seems like a great tool and so of course I went ahead and installed that as well.

Now, the only task I need to think about is how to backup all the weblog data regularly. Any ideas about that?

UPDATE: I have added an “On This Day” feature to the sidebar. It links to a random entry from previous years using the RandomOTDEntry plugin by Mark Paschal.

Posted by Zack at January 26, 2004 7:59 AM in Internet

Advertisements

Trackback Pings

TrackBack URL for this entry:
http://www.zackvision.com/mt/zv-trbk.cgi/577

Comments

I too have wondered about the backup. I figured that the ‘export’ function pretty much does everything (except images) and I keep meaning (one day) to set up a cron job to autodump all the blogs running on my server - value add for the clients :-)

As for images, I am now keeping them as a pseudo-photo-blog and that means one directory to back up (presumably at the same time as the templates).

Posted by: Ozguru (1 comments) at January 26, 2004 8:31 AM

If you wish to backup everything on your home machine, consider using wget, there is a windows executable somewhere on gnu.org. Depending on your directory structure a simple batch file/script that does a recursive websuck should do the trick.

Posted by: Ubaid (15 comments) at January 26, 2004 1:03 PM

The export funtion in MT is handy but has a couple of problems.

  1. Exporting multiple blogs (I have a total of 4 including sideblogs and a portion of my website) is a hassle.
  2. If I export a weblog and then import it, the entry IDs will change breaking all links.

I am actually thinking of trying to automate the whole process. This will involve copying all the files on my webhost periodically to my PC as well as making a backup of the MT mySQL database. I think mysqldump will probably work for that.

Ubaid: wget is a good utility, but I might use scp since that will copy all the files, not just the ones publicly accessible.

Posted by: Zack (1784 comments) at January 27, 2004 1:57 AM

Post a comment

Note: Disagreements are welcome, but please keep it civil. Any comments full of hatred, bigotry, trolling or spam will be deleted and the commenter banned. Do read the commenting policy.

Valid XHTML: You have to preview your comment to make sure that it is valid XHTML 1.1. You will see the "Post" button on the preview page.

Urdu: To comment in Urdu, include "p[ur](urdu). " (with a space at the end and without the quotes) at the start of every Urdu paragraph. If you want to write an Urdu word(s) in an English paragraph, do it like this: %[ur](urdu)اردو%. If you want to put an English word(s) in an Urdu paragraph, write it like this: %[en](en)English words%.

PGP Signing: PGP-signed comments are encouraged. However, clearsigning Urdu text with GPGshell produces garbage.

MathML: Select the Textile with itex to MathML text filter. What you'll use is itex, which is a superset of WebTeX and differs somewhat from standard LaTeX.

Text Filters: For regular comments, whether in English or Urdu, keep the text filter setting to its default of Textile 2. Change it to Textile with itex to MathML when writing MathML.




Remember Me?