BACK TO DIRECTORY

Redis Post Views

by Razvan Stanga

0.0
(0 ratings)

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.

Screenshots

Statistics admin panel

Statistics admin panel

Posts queue admin panel

Posts queue admin panel

Configuration info admin panel

Configuration info admin panel

Plugin Details

Active Installs
10
Total Downloads
1,847
Version
1.7
Requires WP
4.5
Requires PHP
5.2.4
Tested Up To
4.9.31
Added
2018-07-27
Last Updated
2018-07-27 6:32am GMT

Ratings

5
0
4
0
3
0
2
0
1
0