[WordPress] 外掛分享: WP Redis

WordPress 外掛 WP Redis 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP Redis」是 2014-09-17 上架。
  • 目前有 10000 個安裝啟用數。
  • 上一次更新是 2025-01-21,距離現在已有 107 天。
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 有 20 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

mboynes | jspellman | getpantheon | jazzs3quence | danielbachhuber | outlandish-josh |

外掛標籤

cache | redis |

內容簡介

對於關注高流量、用於登錄用戶的速度或動態頁面加載的站點,高速而持久的物件緩存一定是不可或缺的。您還需要裝置能規模化跨多個應用程序實例,因此使用本地文件緩存或 APC 則不適合。

Redis 是一個很好的答案,我們在 Pantheon 平台上捆綁了 Redis。這是與緩存集成的插件,但如果您有 Redis,則可以在任何自託管的 WordPress 站點上使用它。從WordPress.org或Github安裝。

重要的是要注意,持久物件緩存不是萬能的- 包含 2,000 個Redis調用的頁面載入可以是2秒的物件緩存交易。確保明智地使用物件緩存:留在合理的密鑰數量中,不要在每個鍵上存儲大量數據,並避免訪問前端寫入和刪除。

前進盡情創造! 一旦你建立了了不起的東西,請向我們發送功能請求(或錯誤報告)。查看 wiki 了解有用的代碼段和其他提示。

WP-CLI 命令

此插件實現了各種WP-CLI命令。所有命令都分組到 wp redis名稱空間中。

$ wp help redis

NAME

wp redis

SYNOPSIS

wp redis

SUBCOMMANDS

cli 使用 WordPress 的 Redis 配置啟動 redis-cli
debug 對任何頁面 URL 進行物件緩存命中/未命中比例進行調試。
enable 通過創建 object-cache.php 的符號鏈接啟用 WP Redis
info 提供有關 Redis 連接的詳細信息。

使用 wp help redis 來了解每個命令的詳細信息。

貢獻

有關貢獻的信息,請查看 CONTRIBUTING.md。

原文外掛簡介

For sites concerned with high traffic, speed for logged-in users, or dynamic pageloads, a high-speed and persistent object cache is a must. You also need something that can scale across multiple instances of your application, so using local file caches or APC are out.
Redis is a great answer, and one we bundle on the Pantheon platform. This is our plugin for integrating with the cache, but you can use it on any self-hosted WordPress site if you have Redis. Install from WordPress.org or Github.
It’s important to note that a persistent object cache isn’t a panacea – a page load with 2,000 Redis calls can be 2 full seconds of object cache transactions. Make sure you use the object cache wisely: keep to a sensible number of keys, don’t store a huge amount of data on each key, and avoid stampeding frontend writes and deletes.
Go forth and make awesome! And, once you’ve built something great, send us feature requests (or bug reports). Take a look at the wiki for useful code snippets and other tips.
WP-CLI Commands
This plugin implements a variety of WP-CLI commands. All commands are grouped into the wp redis namespace.
$ wp help redis

NAME

wp redis

SYNOPSIS

wp redis

SUBCOMMANDS

cli Launch redis-cli using Redis configuration for WordPress
debug Debug object cache hit / miss ratio for any page URL.
enable Enable WP Redis by creating the symlink for object-cache.php
info Provide details on the Redis connection.

Use wp help redis to learn more about each command.
Contributing
See CONTRIBUTING.md for information on contributing.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Redis」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2.0 | 0.2.1 | 0.2.2 | 0.3.0 | 0.4.0 | 0.5.0 | 0.6.0 | 0.6.1 | 0.6.2 | 0.7.0 | 0.7.1 | 0.8.0 | 0.8.1 | 0.8.2 | 0.8.3 | 1.0.0 | 1.0.1 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.4 | 1.2.0 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.4.5 | trunk |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon