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.

034.0k↑72%[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 2w 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

23

—

LowBetter than 25% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity16

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://avatars.githubusercontent.com/u/69580439?v=4)[Hugo Drelon](/maintainers/Hug0-Drelon)[@Hug0-Drelon](https://github.com/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

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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