What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

Best demonstrated with a screenshot:

enter image description here

Pretty sure there were less of them earlier. The question itself has just the single annotation.

share|improve this question
18  
That should have been [triplicate]. –  Lance Roberts Jan 24 '13 at 0:50
1  
LEFT OUTER JOIN gone bad, maybe? –  bfavaretto Jan 24 '13 at 1:14
5  
developers developers –  Robert Harvey Jan 24 '13 at 1:14
1  
I just saw one with closed repeated 10 times –  bluefeet Jan 24 '13 at 1:38
5  
Too bad a question, one close is not enough.. –  Krishnabhadra Jan 24 '13 at 3:13
    
To be fair enough questions get closed on meta that you would have thought every possible scenario would have been thoroughly tested... –  ben is uǝq backwards Jan 24 '13 at 6:25

1 Answer 1

up vote 12 down vote accepted

This was related to a recent change I made to question titles...

... and the problem was caching*, always caching!

On the home page, we cache a list of recent question objects in ASP.NET's HttpRuntime.Cache, which subsequent requests will use to render your interesting questions.

These question objects have a NiceTitle property that will append those [closed], [duplicate], [migrated] status suffixes, and the code went something like this:

var suffix = GetQuestionStateSuffix();
if (suffix.HasValue())
    Title += " " + suffix;
return Title;

This worked fine in testing; the homepage looked as beautiful as ever. It looked beautiful because none of the normal homepage code used this NiceTitle. **

Mobile, on the other hand, does use it. And this is where the intermittent bug came in. Those cached objects kept getting their Title happily overwritten each time a mobile user rendered a closed question's summary.

The fix is in and deployed - totally my bad.

* and a misguided assignment statement :)

** please don't ask why every rendered Title isn't done through NiceTitle... please.

share|improve this answer
2  
Brace-less if block? shudders –  NullUserException อ_อ Jan 24 '13 at 6:30
1  
Abbreviated for publication :P –  Jarrod Dixon Jan 24 '13 at 6:31
    
@NullUserExceptionอ_อ braces take up hard drive space. He's just being conservative. –  mikeTheLiar Jan 24 '13 at 14:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .