Weblog entry #44 for Steve
Article UpdatesThe site comment handling has now been greatly improved. If you're entering comments in "plain text" then the formatting should be preserved a lot more accurately.
Some simple transformations are applied to text, such as making hyperlinks and converting from *bold* into bold. But otherwise your input should remain unmangled.
Hyperlinks will still be allowed and because people tend to put HTML in their sigs <i>, <b>, <p>, and <a href="">....</a> should work.
Code UpdateDue to some minor optimizations each article read should now be significantly faster.
Essentially the whole page content will come out of the fast memory cache of content - with only two database lookups:
- One to see if you're logged in.
- And one to update the read count for the relevent article.
- (Needed for the hall of fame.)
There is some invalidation going one when things are editted, or new articles added. But otherwise performance should be much improved.
More work is going on breaking up the monolithic codebase. I'm confident that this will soon be over.
I'm pleased with the progress, and the way things are shaping up. I still need to write more test cases though, to ensure I don't cause regressions.
The following perl modules are lovely:
I'm tempted to make a small article on their usage ..
Comments on this Entry
Steve, check the article Installing a Linux-2.6.14+initrd on Sarge. Its main content starts with a "<div> Until recently I used...." and then there is a closing lt;/p> without a starting <p> after <div class="body">. Then the article contains a starting <p> tag with none closing it!
Does that happen when a user simple types in the article without the HTML tags? Haa, and see what happens if you write < and > type entities in the text box and then preview it ;)
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
It looks like it was just missing an opening <p> tag. Fixed now.
[ Parent | Reply to this comment ]
Bring it on!
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
[ Parent | Reply to this comment ]