Home Plugins optimize redis post views
Redis Post Views logo

Redis Post Views

by Razvan Stanga on WordPress.org

Highly optimized post views counter using Redis

(0)
Statistics admin panel

Statistics admin panel

Imagine a high traffic website that needs post views as an algorithm to display posts on the homepage.
This website also uses Varnish Caching. So we need an AJAX based post views counter.
Now imagine a minimum 5000 concurrent users browsing the website, so we can’t use the default “AJAX in Plugins” as live updates on the backend using update_post_meta will be very painful for the backend.

So what can we do ?

What if all these post views counts will be done in memory using Redis ?
Then we run a cornjob using WP-CLI to sync the post views count in Redis to the WordPress database.

Redis Post Views was born.

Active installations10+
Weekly downloads
8-11.11%
Version1.7
Last updated7/27/2018
WordPress version4.5
Tested up to4.9.26
PHP version5.2.4
Tags
cachecachingoptimizationpostviewsredis