PHPackages                             felixarntz/wp-shortcode-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. felixarntz/wp-shortcode-cache

ActiveWordpress-plugin[Caching](/categories/caching)

felixarntz/wp-shortcode-cache
=============================

Adds a customizable cache layer to all shortcodes in WordPress.

462PHP

Since Nov 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/felixarntz/wp-shortcode-cache)[ Packagist](https://packagist.org/packages/felixarntz/wp-shortcode-cache)[ RSS](/packages/felixarntz-wp-shortcode-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![WordPress plugin](https://camo.githubusercontent.com/a7e8c08ff8c2e7cb6c31b37cb02465ab3373cdd8a540046f1b82541534e31eed/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f762f77702d73686f7274636f64652d63616368652e7376673f6d61784167653d32353932303030)](https://wordpress.org/plugins/wp-shortcode-cache/)[![WordPress](https://camo.githubusercontent.com/155663f1c84c527de18a888c1e8f36ac0aad6a2dc4f58e2a4998e46ad0a1d84a/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f762f77702d73686f7274636f64652d63616368652e7376673f6d61784167653d32353932303030)](https://wordpress.org/plugins/wp-shortcode-cache/)[![Code Climate](https://camo.githubusercontent.com/5c16b9f755ccd3999c41cfad25f5c0d8976cbdf237d2289116ae592b0f9cd478/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f66656c697861726e747a2f77702d73686f7274636f64652d63616368652f6261646765732f6770612e737667)](https://codeclimate.com/github/felixarntz/wp-shortcode-cache)[![Latest Stable Version](https://camo.githubusercontent.com/69a471339d275499dc7e142b1d07351e612080bc6264c0659bb6a7774bee2f6b/68747470733a2f2f706f7365722e707567782e6f72672f66656c697861726e747a2f77702d73686f7274636f64652d63616368652f76657273696f6e)](https://packagist.org/packages/felixarntz/wp-shortcode-cache)[![License](https://camo.githubusercontent.com/670a05c6a9a258fa0ffcb64ad2ca9aa06989a0c83a357124285600ed4ef423e1/68747470733a2f2f706f7365722e707567782e6f72672f66656c697861726e747a2f77702d73686f7274636f64652d63616368652f6c6963656e7365)](https://packagist.org/packages/felixarntz/wp-shortcode-cache)

WP Shortcode Cache
==================

[](#wp-shortcode-cache)

Adds a customizable cache layer to all shortcodes in WordPress.

Usage
-----

[](#usage)

After having installed and activated the plugin, all shortcodes will use the plugin's caching mechanism for a performance benefit. To take full advantage of the feature, your site should use a persistent object cache like Redis or Memcache.

The plugin will work properly out of the box for all shortcodes that entirely rely on data passed through shortcode attributes or the shortcode's content. If a shortcode uses external data, for example from globals, this data must be registered, otherwise that data is not considered when creating the unique cache key which can result in incorrect cache return values. By default the plugin automatically tries to detect whether a shortcode uses the `$post` global - however the method used is not a 100 percent reliable, so it is always encouraged to register all external data that is used from within the shortcode (each set of data can either be the result of a callback function or the value of a global variable).

Requirements
------------

[](#requirements)

- WordPress &gt;= 4.7-beta

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/a60abe9a2c42fe5cf2117b88aac2eab186f0ea3c969f1f4a29d4a09d831153b8?d=identicon)[felixarntz](/maintainers/felixarntz)

---

Top Contributors

[![felixarntz](https://avatars.githubusercontent.com/u/3531426?v=4)](https://github.com/felixarntz "felixarntz (10 commits)")

### Embed Badge

![Health badge](/badges/felixarntz-wp-shortcode-cache/health.svg)

```
[![Health](https://phpackages.com/badges/felixarntz-wp-shortcode-cache/health.svg)](https://phpackages.com/packages/felixarntz-wp-shortcode-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)
