jeherve / jp-post-views

Display the number of views for each one of your posts, as recorded by Jetpack Stats.
https://wordpress.org/plugins/post-views-for-jetpack/
3 stars 0 forks source link

Admin: add a new column to display post views #12

Open jeherve opened 9 months ago

jeherve commented 9 months ago

Fixes #5 Closes #11

This is another, simpler take of #11. Jetpack recently introduced changes that now make it easier to store stats data in post meta. This should improve performance of fetching stats in wp-admin, and most importantly will not blow up the options table with transients whenever we want to fetch stats for multiple posts at once.

This will still slow down the admin since it needs to make 20 calls to the WordPress.com REST API every time you load the post list for posts that aren't in cache yet. It can even be more if you've changed the number of posts displayed on each post list page. Unfortunately there is not really a way around it.

I will merge this once Jetpack 13.1 is released next week.

This will effectively means that this plugin will now require Jetpack 13.1.