PHPackages                             l3rady/object-cache-apcu - 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. l3rady/object-cache-apcu

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

l3rady/object-cache-apcu
========================

APCu backend for WordPress' Object Cache

v1.2(1y ago)531.1k17GPL-2.0-or-laterPHP

Since May 14Pushed 1y ago9 watchersCompare

[ Source](https://github.com/l3rady/object-cache-apcu)[ Packagist](https://packagist.org/packages/l3rady/object-cache-apcu)[ RSS](/packages/l3rady-object-cache-apcu/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

WordPress APCu Object Cache Backend
===================================

[](#wordpress-apcu-object-cache-backend)

Contributors: l3rady
Tags: APCu, object cache, backend, cache, performance, speed
Requires at least: 5.6
Tested up to: 6.5.3
Stable tag: 1.2

WordPress APCu Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.

Description
-----------

[](#description)

WordPress APCu Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.

An object cache is a place for WordPress and WordPress extensions to store the results of complex operations. On subsequent loads, this data can be fetched from the cache, which will be must faster than dynamically generating it on every page load.

Be sure to read the installation instructions, as this is **not** a traditional plugin, and needs to be installed in a specific location.

This object cache is a fork of [Mark Jaquith's APC Object Cache Backend](https://wordpress.org/plugins/apc/). There are a number of bugs in that version that have been ignored so I decided to write my own version. The object cache has been pretty much been re-written but some of the best bits from Marks version has been cherry picked over to this version.

Composer Installation
---------------------

[](#composer-installation)

This plugin is marked as a wordpress-dropin type and can be installed automatically via composer using [composer-dropin-installer](https://packagist.org/packages/koodimonni/composer-dropin-installer).

Once the composer-dropin-installer is installed and configured in your project you can run `composer require l3rady/object-cache-apcu`. If set up correctly this should place the object-cache.php file into the your WordPress content dir, usually `wp-content`.

Manual Installation
-------------------

[](#manual-installation)

1. Verify that you have PHP 7.2+ and a compatible APCu version installed.
2. Copy `object-cache.php` to your WordPress content directory (`wp-content/` by default).
3. Done!

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

### I share `wp-config.php` among multiple WordPress installs. How can I guarantee key uniqueness?

[](#i-share-wp-configphp-among-multiple-wordpress-installs-how-can-i-guarantee-key-uniqueness)

Define `WP_APCU_KEY_SALT` to something that is unique for each install (like an md5 of the MySQL host, database, and table prefix).

Changelog
---------

[](#changelog)

### 1.2

[](#12)

- Add composer file and add dropin plugin to packagist.org for easy installation via composer.
- Add latest cache methods added to core recentlys

### 1.1

[](#11)

- Add local array cache to reduce APCu calls for repeated requests to same keys during page load. Props to [rob006](https://github.com/rob006)
- Add `WP_APCU_LOCAL_CACHE` define to disable local cache for edge cases where local cache can cause memory exhaustion issues

### 1.0.1

[](#101)

- Make `$cache_hits` and `$cache_misses` public params for stats plugins to access

### 1.0

[](#10)

- Initial release, forked from [WordPress-APC-Object-Cache](https://github.com/l3rady/WordPress-APC-Object-Cache)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

727d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1346470?v=4)[Scott Cariss](/maintainers/l3rady)[@l3rady](https://github.com/l3rady)

---

Top Contributors

[![l3rady](https://avatars.githubusercontent.com/u/1346470?v=4)](https://github.com/l3rady "l3rady (11 commits)")[![petrozavodsky](https://avatars.githubusercontent.com/u/2689829?v=4)](https://github.com/petrozavodsky "petrozavodsky (1 commits)")[![rob006](https://avatars.githubusercontent.com/u/5972388?v=4)](https://github.com/rob006 "rob006 (1 commits)")

### Embed Badge

![Health badge](/badges/l3rady-object-cache-apcu/health.svg)

```
[![Health](https://phpackages.com/badges/l3rady-object-cache-apcu/health.svg)](https://phpackages.com/packages/l3rady-object-cache-apcu)
```

###  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)
