Open jeherve opened 7 years ago
Also suggested here: https://wordpress.org/support/topic/admin-show-counter/
Hello, any update?
Also suggested here: https://wordpress.org/support/topic/custom-column-at-posts/
Also suggested here: https://wordpress.org/support/topic/show-post-views-in-all-post-view/
For anyone following, a potential issue has stopped me from quickly implementing this so far: the Jetpack plugin caches the stats value for each post in its own entry in the options table. Updating stats for all posts to display the column would end up being quite taxing for sites with a lot of posts.
I can think of 2 ways around this at the moment:
There may be better alternatives I haven't thought of yet though. I'll update the issue once I figure this out.
This also came up in https://wordpress.org/support/topic/specify-page-for-post-view-count/
the Jetpack plugin caches the stats value for each post in its own entry in the options table. Updating stats for all posts to display the column would end up being quite taxing for sites with a lot of posts.
To be honest, as an owner of a pretty big website (over 22,000 posts), I don't think one more postmeta row for each post is such a big deal. I think it's a non-issue. Yet, if it's something you're trying to avoid, maybe just set the value for posts that are actually being viewed on the active posts page (the first page, usually) , and ignore posts from previous pages as long as no one is trying to access them?
I don't think one more postmeta row for each post is such a big deal.
I would agree. However, in this case the data is cached as transients, one for each post. In practice, that means your site's options table would significantly grow, and that is in my opinion more problematic than post meta.
maybe just set the value for posts that are actually being viewed on the active posts page (the first page, usually) , and ignore posts from previous pages as long as no one is trying to access them?
Yes, that's something I have considered. 👍
https://wordpress.org/support/topic/feature-request-530/