I saw this recently. Why 0 featured questions, when clearly there are?
1 Answer
This is an occasional and unfortunate side effect of the mechanisms of caching that we use to keep this site functioning and speedy despite getting tens of millions of visitors per month.
Sometimes certain queries (such as the one to count the featured questions) take a little longer than expected and get cached in a bad state for a period of time. Although infrequent, it does create odd scenarios such as this.
Unfortunately, to guarantee the correct number at all times we'd have to ensure that the query completed every single time, which would make our sites slow...
So, I'm calling it by design.
(Also shouldiblamecaching.com)
-
There was definitely something going on when this question was asked though. I did not even have a
Featured
tab on the front page. It is back now, but it was gone all through yesterday. Sep 25, 2014 at 17:42 -
Yeah, the occasional performance hiccup happens. That, or we checked in some poor code. :) Sep 25, 2014 at 17:44
-
-
An integer's default value is 0. If the query doesn't return the count in time, the default is used. Sep 26, 2014 at 13:14
-
-
@Stijn valid point. Design choice, and also how do you know programmatically whether or not 0 is valid? On a new or beta site 0 could very well be the truth. Sep 30, 2014 at 16:25
/questions
or filtering by tag.