View Counts
Posted: Wed Jul 18, 2012 6:52 am
Did something happen to the server or did the view counts just disappeared all of a sudden?
The Big Boss (thelastguardian) did an overhaul on the back end of the web server last weekend, and the counts disappeared after that. Several of us have PM'd him on the matter, but we (or at least I) have not heard anything back yet.Misogi wrote:It seems that they disappeared, after HSDxD. I don't think it's a coincidence, though, it must be a bug.
To a point, I can believe that, since the changing number makes the page different each time you pull it up, which defeats caching. There are probably ways to avoid that, though.stellarroze wrote:I got a reply back...
He said he turned it off because it interferes with page caching.
Unless there are changes to the mediawiki SW in the new version, the pages served to anons were cached versions so the page view will not change for them, so I'm not sure how it interferes. I can't remember whether the previous count was still stored in the DB, but iirc, once disabled, the new views since then will not tracked.rpapo wrote:To a point, I can believe that, since the changing number makes the page different each time you pull it up, which defeats caching. There are probably ways to avoid that, though.stellarroze wrote:I got a reply back...
He said he turned it off because it interferes with page caching.
I am not a web programmer, rather a native C/C++ developer, so I am not an expert on this particular topic.
That's a shame. Notice, though, that The Other Wiki (to borrow the term they use at tvtropes) does not provide hit counts either.larethian wrote:Unless there are changes to the mediawiki SW in the new version, the pages served to anons were cached versions so the page view will not change for them, so I'm not sure how it interferes. I can't remember whether the previous count was still stored in the DB, but iirc, once disabled, the new views since then will not tracked.
View count places a heavy strain on the database. Most mediawiki sites, after they reach a certain size, find the counter detrimental to the performance. Also, if Baka-Tsuki move onto more advance implementation of caching (such as Squid used by wikipedia), the view counter must be disabled.
In any case, I've changed the view counter to only approximate the correct page view. As it is an approximation, it is not entirely accurate.
Finally, if anyone feels that their page needs a view counter, he or she is welcome to add a third party view counter (such as Google Analysis) to their respective page.