PHPackages                             shelob9/jp-rest-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. shelob9/jp-rest-cache

ActiveLibrary[Caching](/categories/caching)

shelob9/jp-rest-cache
=====================

Soft-expiring, server-side cache for the WordPress REST API (WP REST).

661249[2 issues](https://github.com/Shelob9/jp-rest-cache/issues)PHP

Since Apr 30Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Shelob9/jp-rest-cache)[ Packagist](https://packagist.org/packages/shelob9/jp-rest-cache)[ RSS](/packages/shelob9-jp-rest-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JP REST API CACHE
=================

[](#jp-rest-api-cache)

Soft-expiring, server-side cache for the WordPress REST API (WP REST).

Utilizes [Mark Jaquith's WP-TLC-Transients Library](https://github.com/markjaquith/WP-TLC-Transients). Requires WordPress and the [WordPress REST API](http://wp-api.org).

Keep in mind two things when using please:

1. Caching does not categorically equal faster. Do some science, test on your testing server, not your live server for the love of Gaia, to figure out if this actually improves performance.
2. You're probably better off using a persistent object cache on your site. Again, do science, figure out what works best. My feelings will not be hurt if you use something else instead.

BTW By "do science" I mean do a set of repeatable tests with a one independent variable (cache method) and keep everything else the same. Compare results and see if you're hypothesis (cache method == faster) evaluates true or false.

### Installation

[](#installation)

This is not a plugin. It's a composer library. Putting this in your plugin directory and then opening an issue when this doesn't show up in your plugin admin is a violation of intergalactic law.

Add `"shelob9/jp-rest-cache": "dev-master"` to your site/plugin/theme's composer.json.

### License

[](#license)

Copyright 2014 Josh Pollock. Licensed under the terms of the GNU General public license version 2. Please share with your neighbor.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca938daf3f2a666cd32c7bdb6e30714da6fe0e6cd5012fe4864b18afae43fbcd?d=identicon)[Shelob9](/maintainers/Shelob9)

---

Top Contributors

[![Shelob9](https://avatars.githubusercontent.com/u/1994311?v=4)](https://github.com/Shelob9 "Shelob9 (8 commits)")[![bradleykirby](https://avatars.githubusercontent.com/u/1795493?v=4)](https://github.com/bradleykirby "bradleykirby (3 commits)")[![duncanjbrown](https://avatars.githubusercontent.com/u/642279?v=4)](https://github.com/duncanjbrown "duncanjbrown (1 commits)")

### Embed Badge

![Health badge](/badges/shelob9-jp-rest-cache/health.svg)

```
[![Health](https://phpackages.com/badges/shelob9-jp-rest-cache/health.svg)](https://phpackages.com/packages/shelob9-jp-rest-cache)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
