Foxe Labs Foxe Labs
All PHP Libraries
PHP Open source · GPL-2.0-or-later PHP Library

WP Cache Helper

A cleaner API over the WordPress object cache and transients.

  • Unified API over the object cache and the transients API
  • Group flush support to invalidate related entries at once
  • Per-prefix scoping to avoid key collisions
  • A swappable driver layer for testing and portability

What it does

WP Cache Helper wraps the WordPress object cache and transients behind one small, consistent API — with grouped invalidation, prefixed keys, and a driver layer you can swap out in tests.

Install with Composer:

composer require duckdev/wp-cache-helper