Title: Redis Post Views
Author: Razvan Stanga
Published: <strong>27 juli 2018</strong>
Last modified: 27 juli 2018

---

Sök tillägg

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

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

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

# Redis Post Views

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

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

 * [Detaljer](https://sv.wordpress.org/plugins/optimize-redis-post-views/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/optimize-redis-post-views/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/optimize-redis-post-views/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/optimize-redis-post-views/#developers)

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

## Beskrivning

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.

## Skärmdumpar

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

## Installation

 * You must install Redis on your server(s)

## Vanliga frågor

  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

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”Redis Post Views” är programvara med öppen källkod. Följande personer har bidragit
till detta tillägg.

Bidragande personer

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

[Översätt ”Redis Post Views” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/optimize-redis-post-views)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/optimize-redis-post-views/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/optimize-redis-post-views/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/)
via [RSS](https://plugins.trac.wordpress.org/log/optimize-redis-post-views/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 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**
 *  Senast uppdaterat **8 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 4.5 eller senare **
 *  Testat upp till **4.9.29**
 *  PHP-version ** 5.2.4 eller senare **
 *  Språk
 * [English (US)](https://wordpress.org/plugins/optimize-redis-post-views/)
 * Etiketter
 * [cache](https://sv.wordpress.org/plugins/tags/cache/)[caching](https://sv.wordpress.org/plugins/tags/caching/)
   [optimization](https://sv.wordpress.org/plugins/tags/optimization/)[postviews](https://sv.wordpress.org/plugins/tags/postviews/)
   [redis](https://sv.wordpress.org/plugins/tags/redis/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/optimize-redis-post-views/advanced/)

## Betyg

Än så länge har inga recensioner skickats in.

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

[Se alla recensioner](https://wordpress.org/support/plugin/optimize-redis-post-views/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](https://www.paypal.me/razvanstanga)