Title: Redis Post Views
Author: Razvan Stanga
Published: <strong>2018 年 7 月 27 日</strong>
Last modified: 2018 年 7 月 27 日

---

搜索插件

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

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Redis Post Views

 作者：[Razvan Stanga](https://profiles.wordpress.org/razvanstanga/)

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

 * [详情](https://cn.wordpress.org/plugins/optimize-redis-post-views/#description)
 * [评价](https://cn.wordpress.org/plugins/optimize-redis-post-views/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/optimize-redis-post-views/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/optimize-redis-post-views/#developers)

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

## 描述

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.

## 屏幕截图

 * [[
 * Statistics admin panel
 * [[
 * Posts queue admin panel
 * [[
 * Configuration info admin panel

## 安装

 * You must install Redis on your server(s)

## 常见问题

  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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Redis Post Views」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Redis Post Views」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/optimize-redis-post-views)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/optimize-redis-post-views/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/optimize-redis-post-views/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/)。

## 更新日志

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

## 额外信息

 *  版本 **1.7**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.5 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/optimize-redis-post-views/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[caching](https://cn.wordpress.org/plugins/tags/caching/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[postviews](https://cn.wordpress.org/plugins/tags/postviews/)
   [redis](https://cn.wordpress.org/plugins/tags/redis/)
 *  [高级视图](https://cn.wordpress.org/plugins/optimize-redis-post-views/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/optimize-redis-post-views/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/optimize-redis-post-views/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/razvanstanga)