PHPackages                             wpsyntex/object-cache-annihilator - 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. wpsyntex/object-cache-annihilator

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

wpsyntex/object-cache-annihilator
=================================

A simple file-based object cache implementation for testing purposes.

025.0k↑47.2%[1 issues](https://github.com/polylang/object-cache-annihilator/issues)1PHPCI passing

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/polylang/object-cache-annihilator)[ Packagist](https://packagist.org/packages/wpsyntex/object-cache-annihilator)[ RSS](/packages/wpsyntex-object-cache-annihilator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Object Cache Annihilator
========================

[](#object-cache-annihilator)

A simple file-based object cache implementation for WordPress, designed for testing purposes. This plugin provides a convenient way to test and debug WordPress object cache functionality.

Features
--------

[](#features)

- File-based object cache implementation
- Easy enable/disable through admin bar
- Cache flushing capabilities
- Support for cache groups and expiration
- Admin interface for cache management

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

[](#requirements)

- WordPress 6.2 or higher
- PHP 7.2 or higher
- Write permissions to the `wp-content` directory

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

[](#installation)

1. Follow the instructions in the [Distribution](#distribution) section to build the plugin
2. Upload the plugin files to the `/wp-content/plugins/object-cache-annihilator` directory
3. Activate the plugin through the 'Plugins' menu in WordPress

Usage
-----

[](#usage)

Once activated, you'll see a new menu item in the admin bar:

- **Object Cache ☠️**: Main menu item
    - **Die 🔫**: Disable the object cache
    - **Resurrect 👻**: Enable the object cache
    - **Flush 🚽**: Clear all cached data (only available when cache is enabled)

Development
-----------

[](#development)

### Setup

[](#setup)

1. Clone the repository
2. Run `composer install` to install dependencies
3. Run `npm install` to install development dependencies

### Development Environment

[](#development-environment)

The plugin includes a WordPress development environment using `@wordpress/env`. To start it:

```
npm run env:start
```

Other available commands:

- `npm run env:stop`: Stop the environment
- `npm run env:clean`: Clean the environment
- `npm run env:start:fresh`: Start a fresh environment
- `npm run env:composer`: Run composer commands in the environment

### Code Quality

[](#code-quality)

The plugin uses several tools to maintain code quality:

- PHPCS for coding standards
- PHPStan for static analysis
- Composer for dependency management

Available commands:

- `composer cs`: Run coding standards check
- `composer cs-fix`: Fix coding standards issues
- `composer stan`: Run static analysis

Distribution
------------

[](#distribution)

To create a distribution package:

```
npm run dist
```

This will:

1. Clean up development files
2. Install production dependencies
3. Create a distribution package in the `dist` directory

Advanced Usage
--------------

[](#advanced-usage)

### Process-specific Cache Management

[](#process-specific-cache-management)

For managing the cache within a single PHP process (without affecting the drop-in file):

```
global $wp_object_cache;

// Enable cache for current process
$wp_object_cache->resurrect();

// Disable cache for current process
$wp_object_cache->die();

// Flush cache for current process
$wp_object_cache->flush();
```

This approach is useful when you need to temporarily enable/disable the cache for specific operations without affecting the global cache state.

License
-------

[](#license)

This plugin is licensed under the GPL v3 or later.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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/c19c76940ef74dd439615510fff31c11e2d8705d1ac7670751f977fbc6039013?d=identicon)[Chouby](/maintainers/Chouby)

![](https://www.gravatar.com/avatar/556f6768aac8ac41c10bbd94e13fc8138dff1cbe93a7d01a4bcc5d0849ab4fca?d=identicon)[Hug0-Drelon](/maintainers/Hug0-Drelon)

---

Top Contributors

[![Hug0-Drelon](https://avatars.githubusercontent.com/u/69580439?v=4)](https://github.com/Hug0-Drelon "Hug0-Drelon (11 commits)")

### Embed Badge

![Health badge](/badges/wpsyntex-object-cache-annihilator/health.svg)

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

###  Alternatives

[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)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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