Comment posting is a bit faster now.

Posted by Les on Thursday, April 01, 2004 at 07:34 AM. Read 592 times. Tags:
{name} pic

You may have noticed it doesn’t take as long for a comment to post in the last couple of days. I read something about MT and the speed of rebuilding pages at another site (don’t recall where) and in the comments there Ben Trott (one of MT’s programmers) mentioned that the slowdown seems to be a result of using the MTArchive tag a bit too much.

Well, I use it a lot and not just on some of the archive pages. For example, many of the things in the navbar to the left, such as the listing of links to the monthly and category archives, make use of the MTArchive tag to create them. That side bar is on the main index page as well as the individual entry pages and the category archive pages as well. I was originally including it using MT’s built-in template module system and that means that every time a comment was posted or an entry was added it was processing those MTArchive tags a minimum of 5 times for every page that needs to be updated.

The solution? I created a new “index” template that contained the code for only the sidebar and then import that into the various other templates using PHP’s include statement. Now those tags are processed once for all the sidebars instead of repeatedly for each page that uses them. The other advantage is that the sidebar is now consistent across all pages (it used to do different things depending on the nature of the page it was being used on). Honestly, I don’t know why this didn’t occur to me sooner as in hindsight it makes perfect sense. SEB is still no speed-demon, but it’s definitely faster than it was.

Comments:

Page 1 of 1 pages

LuckyJohn19 Australia Posted on 11/30/2006 at 06:06 AM

LuckyJohn19 pic

Alice, you’ll have to post in English - not in Dutch or its derivatives. wink

 Signature 

I’ve discovered that it all boils down to brain wiring: your brain is wired to worship magic or it isn’t, either it’s wired to utilize logic or it isn’t, either it’s analytical of myths or it isn’t.

itdontmatter United States Posted on 11/30/2006 at 06:25 AM

itdontmatter pic

Alice is spamming for First Europa, which is a Dutch insurance company.

Cringely’s PBS blog also got hit, as did devzone.zend.com, thinksecret.com, theequitykicker.com, and many others.

Les United States Posted on 11/30/2006 at 09:11 AM

Les pic

Alice’s spam post is going bye-bye and the URL is being added to the blacklist.

 Signature 

Agnostics are just atheists without balls. - Stephen Colbert

Page 1 of 1 pages

Name:

Email:

Location:

URL:

Smileys


Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


<< Back to main