Title: Redis Post Views
Author: Razvan Stanga
Published: <strong>སྤྱི་ཟླ་བདུན་པ། 27, 2018</strong>
Last modified: སྤྱི་ཟླ་བདུན་པ། 27, 2018

---

Search plugins

![](https://ps.w.org/optimize-redis-post-views/assets/banner-772x250.png?rev=1915717)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/optimize-redis-post-views/assets/icon-256x256.png?rev=1915717)

# Redis Post Views

 By [Razvan Stanga](https://profiles.wordpress.org/razvanstanga/)

[Download](https://downloads.wordpress.org/plugin/optimize-redis-post-views.1.7.zip)

 * [Details](https://dzo.wordpress.org/plugins/optimize-redis-post-views/#description)
 * [Reviews](https://dzo.wordpress.org/plugins/optimize-redis-post-views/#reviews)
 *  [Installation](https://dzo.wordpress.org/plugins/optimize-redis-post-views/#installation)
 * [Development](https://dzo.wordpress.org/plugins/optimize-redis-post-views/#developers)

 [Support](https://wordpress.org/support/plugin/optimize-redis-post-views/)

## Description

Imagine a high traffic website that needs post views as an algorithm to display 
posts on the homepage.
 This website also uses [Varnish Caching](https://wordpress.org/plugins/vcaching/).
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
 * [[
 * Posts queue admin panel
 * [[
 * Configuration info admin panel

## Installation

 * You must install Redis on your server(s)

## FAQ

  Installation Instructions

 * You must install Redis on your server(s)

  How can I display the post views in a template?

You can do this with get_post_meta(get_the_ID(), RPV_POST_META_KEY, true); php function

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Redis Post Views” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Razvan Stanga ](https://profiles.wordpress.org/razvanstanga/)

[Translate “Redis Post Views” into your language.](https://translate.wordpress.org/projects/wp-plugins/optimize-redis-post-views)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/optimize-redis-post-views/),
check out the [SVN repository](https://plugins.svn.wordpress.org/optimize-redis-post-views/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/)
by [RSS](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.7

 * optimizations

#### 1.6

 * moved wp-config-rpv.php wo wp-config for improved compatibility

#### 1.5

 * WP-Admin sync all option
 * optimizations

#### 1.4

 * show total views on Posts Queue tab
 * optimizations

#### 1.3

 * improved stats using Chart.js

#### 1.2

 * posibility to sync the post views in Posts Queue tab

#### 1.1

 * added wp-admin backend including stats
 * added posibility to override settings in wp-config.php

#### 1.0

 * in production extensive testing done

## Meta

 *  Version **1.7**
 *  Last updated **8 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **4.9.29**
 *  PHP version ** 5.2.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/optimize-redis-post-views/)
 * Tags
 * [cache](https://dzo.wordpress.org/plugins/tags/cache/)[caching](https://dzo.wordpress.org/plugins/tags/caching/)
   [optimization](https://dzo.wordpress.org/plugins/tags/optimization/)[postviews](https://dzo.wordpress.org/plugins/tags/postviews/)
   [redis](https://dzo.wordpress.org/plugins/tags/redis/)
 *  [Advanced View](https://dzo.wordpress.org/plugins/optimize-redis-post-views/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/optimize-redis-post-views/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/optimize-redis-post-views/reviews/)

## Contributors

 *   [ Razvan Stanga ](https://profiles.wordpress.org/razvanstanga/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/optimize-redis-post-views/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/razvanstanga)