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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/optimize-redis-post-views/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/optimize-redis-post-views/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/optimize-redis-post-views/#installation)
 * [開發資訊](https://tw.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⌉⌊Statistics admin panel⌉[

Statistics admin panel

[⌊Posts queue admin panel⌉⌊Posts queue admin panel⌉[

Posts queue admin panel

[⌊Configuration info admin panel⌉⌊Configuration info 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 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.33**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/optimize-redis-post-views/)
 * 標籤:
 * [cache](https://tw.wordpress.org/plugins/tags/cache/)[caching](https://tw.wordpress.org/plugins/tags/caching/)
   [optimization](https://tw.wordpress.org/plugins/tags/optimization/)[postviews](https://tw.wordpress.org/plugins/tags/postviews/)
   [redis](https://tw.wordpress.org/plugins/tags/redis/)
 *  [進階檢視](https://tw.wordpress.org/plugins/optimize-redis-post-views/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](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)