跳到内容

HarborCache – Object Cache with Redis

v1.9.0

shahidirfan100 · 2026年10月20日 上架

Persistent Redis object caching with scoped invalidation, local analytics, connection settings and diagnostics.

正在使用
10 以下
评分
1.0 / 5
累计下载
711
最近更新
2026年11月18日
1 条评价需要 WordPress 6.6+已测试到 7.1.5PHP 7.4+

贡献者

截图

Status: connection state, request metrics and lifecycle controls.
Status: connection state, request metrics and lifecycle controls.
Analytics: local sampled request history.
Analytics: local sampled request history.
Settings: connection, limits and the saved-connection test.
Settings: connection, limits and the saved-connection test.
Cache: groups and scoped clearing.
Cache: groups and scoped clearing.
Diagnostics: server observability and on-demand checks.
Diagnostics: server observability and on-demand checks.
Raw report for support.
Raw report for support.
WordPress dashboard widget.
WordPress dashboard widget.

HarborCache provides persistent Redis object caching with a dashboard, local analytics, connection settings and scoped cache controls. It was developed around the day-to-day needs of the author’s websites, with its own administration and cache-management workflow.

It requires a separately operated Redis server. No account, subscription or license key is required. Request analytics stay in your configured Redis namespace. External tracing is disabled by default. See docs/FEATURES.md for implemented behavior, verified configurations and deployment acceptance gates.

Features include persistent caching through Predis, PhpRedis, Relay or Credis; multisite group scopes; bounded TTLs; atomic namespace invalidation; bulk cache operations; typed values; optional serialization and compression; optional split-alloptions storage; request key prefetching; local sampled analytics; an authenticated REST API; WP-CLI; protected administration forms; Site Health; Query Monitor; and Debug Bar support.

Advanced additions include bounded background reclamation, exact integer counters, safe-read retries/backoff, replica/Sentinel/cluster read routing, logging/tracing adapters, custom cache/connector factories, analytics retention/count/flush-persistence controls and shared-server capacity reporting. See docs/ADVANCED.md and the feature ledger for native-extension acceptance gates and API differences.

The dashboard includes Status, Analytics, Settings, Cache and Diagnostics. Configuration is saved to a guarded PHP file in wp-content. Configuration constants take precedence. Passwords and cached values are excluded from diagnostic exports.

REST API

HarborCache exposes an authenticated REST API under harborcache/v1. Use cookie authentication with a REST nonce, or an application password. The same capability that opens Settings is required: manage_options, or manage_network_options on multisite. The harborcache_manager_capability filter can change it.

Read routes: /status, /health, /analytics?window=7200&interval=300, /groups, /groups/{scope}/{group}, /slowlog and /relay. /groups returns at most 1,000 registry entries and a truncated flag. /analytics returns at most 1,000 samples; when analytics are disabled it returns enabled: false and summary: null. /slowlog returns the latest 25 command names, timestamps and durations; it is disabled with HTTP 403 when the connection is marked as a shared Redis server.

The group route scope is global or site-<id>. The flush route accepts exactly one of group=<name> or scope=site|site-<id>|global|all. scope=site means the current site. all is accepted only when network_flush allows it and the caller is a network administrator on multisite; other cross-site scopes require the same. Sending both group and scope returns HTTP 400.

Responses omit credentials and connection endpoints. Status codes are 400 for invalid or ambiguous input, 401/403 for authentication or scope refusal, 404 for an unknown registered group, 429 with Retry-After when the flush budget is exhausted, 503 when Redis is unavailable, and 500 when a flush is not confirmed. Flushes are limited to one per minute and ten per hour per user and site. /health returns four checks (connection, Redis server, drop-in, cron) and their facts. All routes require the management capability; unauthenticated requests are rejected by WordPress REST authentication. See docs/REST-API.md for the error table and examples.

HarborCache connects to the Redis endpoint you configure. It does not contact the original plugin vendor. Optional tracing must be explicitly configured and uses your host application’s New Relic or OpenTelemetry integration and destination. Plugin-provided spans contain command names, timings and bounded datastore metadata; they omit cached keys, values, credentials and endpoint details. Configure retention and privacy in your provider or collector. No tracing SDK, remote account or external destination is enabled by default.

Redis is a registered trademark of Redis Ltd. No affiliation or endorsement is implied.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums