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.
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.