[WordPress] 外掛分享: WP Redis

首頁外掛目錄 › WP Redis
WordPress 外掛 WP Redis 的封面圖片
10,000+
安裝啟用
★★★★
4.7/5 分(20 則評價)
97 天前
最後更新
問題解決
WordPress 3.0.1+ PHP 7.4+ v1.4.7 上架:2014-09-17

內容簡介

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

SUBCOMMANDS

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

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

貢獻

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Redis」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon