PHPackages                             voceconnect/wp-cache-bucket - 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. voceconnect/wp-cache-bucket

ActiveLibrary[Caching](/categories/caching)

voceconnect/wp-cache-bucket
===========================

Allows cache items to be tied to a single validation key

1.1.4(11y ago)628.3k21GPLv2+PHP

Since Nov 11Pushed 9y ago15 watchersCompare

[ Source](https://github.com/voceconnect/wp-cache-bucket)[ Packagist](https://packagist.org/packages/voceconnect/wp-cache-bucket)[ RSS](/packages/voceconnect-wp-cache-bucket/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (6)Used By (1)

### Please note: This plugin is no longer being actively maintained or supported.

[](#please-note-this-plugin-is-no-longer-being-actively-maintained-or-supported)

WP Cache Bucket
===============

[](#wp-cache-bucket)

Contributors: voceplatforms, prettyboymp, csloisel, kevinlangleyjr
Tags: cache, caching, performance, optimization
Requires at least: 3.0
Tested up to: 4.1
Stable tag: 1.1.4
License: GPLv2 or later
License URI:

Allows cache items to be tied to a single validation key so they can all be expired at once.

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

[](#description)

Cache bucket uses the built-in WordPress `wp_cache` but contains methods to associate multiple items with a single cache object or 'bucket' without having to stick all of them into a single cache key. This is helpful when you have multiple items that need to be updated when one item is modified.

Because the key used to identify the cached item is dependent on other variables when it's being accessed, there is no easy way to identify all of the related keys that need to expire, and Memcached doesn't provide is a way to invalidate a group of data. WP Cache Bucket provides a wrapper around the cache that gives a "bucket" interface, allowing us to easily expire the entire set of cached menus when an object changes.

**Please Note:**
This plugin does not do anything by itself on activation. It is meant to be a helper class for theme and plugin developers.

### Usage

[](#usage)

Cache Add:
`wp_cache_bucket_add( $bucket, $key, $data, $group = '', $expire = 0 )`

Cache Set:
`wp_cache_bucket_set( $bucket, $key, $data, $group = '', $expire = 0 )`

Cache Get:
`wp_cache_bucket_get( $bucket, $key, $group = '', $force = false )`

Cache Delete:
`wp_cache_bucket_flush( $bucket, $group = '' )`

Installation
------------

[](#installation)

### As standard plugin:

[](#as-standard-plugin)

See [Installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins).

### As theme or plugin dependency:

[](#as-theme-or-plugin-dependency)

After dropping the plugin into the containing theme or plugin, add this snippet:

```
if( ! class_exists( 'WP_Cache_Bucket' ) ) {
    require_once( $path_to_wp_cache_bucket . '/wp-cache-bucket.php' );
}

```

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

[](#frequently-asked-questions)

- **How is this different than WordPress Cache?**
    - *This plugin isn't much different from the built-in WordPress object cache methods, in fact it still uses them. The biggest advantage of this plugin is the ability to flush all data associated with a bucket.*

Changelog
---------

[](#changelog)

Please refer to the [Release History](https://github.com/voceconnect/wp-cache-bucket/releases)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~100 days

Total

5

Last Release

4163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f9c70d57401b4844db2d0391e4a17919cd1faa95181099c156e6586798b4b98?d=identicon)[kevinlangleyjr](/maintainers/kevinlangleyjr)

![](https://www.gravatar.com/avatar/60c26d865c2615b90378cd9d45d70e3d11f58de984e6831a125ec22672c1d390?d=identicon)[voceconnect](/maintainers/voceconnect)

![](https://avatars.githubusercontent.com/u/672045?v=4)[Curtis Loisel](/maintainers/csloisel)[@csloisel](https://github.com/csloisel)

---

Top Contributors

[![kevinlangleyjr](https://avatars.githubusercontent.com/u/877634?v=4)](https://github.com/kevinlangleyjr "kevinlangleyjr (2 commits)")

---

Tags

wordpresscache

### Embed Badge

![Health badge](/badges/voceconnect-wp-cache-bucket/health.svg)

```
[![Health](https://phpackages.com/badges/voceconnect-wp-cache-bucket/health.svg)](https://phpackages.com/packages/voceconnect-wp-cache-bucket)
```

###  Alternatives

[markjaquith/wp-tlc-transients

A WP transients interface with support for soft-expiration, background updating of the transients.

34175.3k3](/packages/markjaquith-wp-tlc-transients)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23817.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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