EN · ORIGINAL REPOSITORY DOCUMENT
Changelog
Original English text. Commands and evidence apply to the revision and environment stated in the document.
CHANGELOG.md
On this page
Changelog
All notable changes to this project will be documented in this file.
v1.26.0-rc.8 - 2026-10-11 (release candidate; supersedes rc.7)
Changed
- Restructure the drivers, configuration, diagnostics, exceptions, logging, metrics and WordPress admin/CLI/REST/Site Health sources (member order, local names, control flow and condensed documentation comments). Behaviour, stored data and public API unchanged: every characterization suite matches rc.7.
- Extend the lab tooling with parallel release checks and an additional scenario.
Fixed
- Regression scripts run on PHP 8.4+ and 8.5 without deprecation output: explicit nullable parameter type in the entitlement store test, and the no-op
ReflectionProperty::setAccessible()calls removed from the pipelined-reads test.
v1.26.0-rc.7 - 2026-10-10 (release candidate; supersedes rc.6)
Fixed
- Hide internal bulk-write helper frames in Query Monitor command traces.
- Route an MGET containing alloptions to the primary regardless of key position, while preserving ordinary replica reads and per-site/database/prefix isolation.
- Validate bulk reply shape, count and key correlation before publishing results. Retire uncertain runtime values before error callbacks, including callbacks that throw.
Changed
- Reduce request-local lookup, group classification and bulk write overhead while retaining extension hooks and stored false/null values.
- Reuse resolved scoped identifiers for native invalidation, avoiding repeated key construction and redundant runtime lookups.
- Cache diagnostic class names in a bounded table while preserving metadata fields and ordering.
- Add native-backend, override, diagnostic and scoped-deletion regression tests and a repeatable CPU benchmark entry point.
v1.26.0-rc.6 - 2026-10-10 (release candidate; supersedes rc.5)
Changed
- Batch confirmed stored-false values in supported standalone bulk reads while retaining atomic metadata checks and existing topology fallbacks.
- Reduce prefetch request eligibility overhead. Stop large, non-recursive array scans after the first incompatible value in the default cache class; retain subclass callbacks and existing object/recursive traversal behavior.
- Reduce declarative hook registration and callback overhead, and group PhpRedis and cluster driver constant declarations without changing their public values.
- Clarify metric documentation and extend regression coverage for bulk reads, constants and prefetch contracts.
v1.26.0-rc.5 - 2026-10-09 (release candidate; supersedes rc.4)
Changed
- Core cache restructured: api.php, CacheBackend, PhpRedisBackedCache and CommandCatalog rewritten; per-blog group handles carry each group’s key prefix and flags; every write updates the runtime copy through one commit point; prefetch bookkeeping runs only after a prefetch. Behaviour, stored data and public API unchanged.
- CLI commands, cron schedule, admin dashboard, options REST endpoint and validator, drop-in manager, metric sets, admin widgets and templates restructured (templates render through a shared Markup helper). Output, hooks, routes and escaping unchanged.
v1.26.0-rc.4 - 2026-10-09 (release candidate; supersedes rc.3)
Changed
- Internal restructuring of the WP-CLI commands, REST endpoints and admin templates, logging and exception rendering, licensing, Site Health checks, the must-use loader, the PhpRedis/Relay driver clients and connector, and the replicated/Sentinel/Relay topology connections. Behaviour, output, stored data and public API are unchanged; no new configuration.
- Custom logger subclasses that override level methods without return types keep loading (covered by a regression test).
v1.26.0-rc.3 - 2026-10-09 (release candidate; supersedes rc.2)
Changed
- Cache metrics (D5.8): store wait and memory come from the connection’s counters, so a replica read counts in its group and every command of an operation is counted, not only the last. The
readandwritemetric groups are gone: analytics pruning and query pruning count in theanalyticsgroup. - ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. A refused setter also raises_doing_it_wrong()(orE_USER_WARNINGoutside WordPress), once per method per request, and never throws. The setters are removed in the next release. - Analytics window (D6.7, D6.8):
IntervalSeriestakesper_page+1 buckets, deltas are never negative, the field set is passed explicitly, measurement reads are bounded with anX-ObjectCache-Measurements-Truncatedheader, andAnalyticsQueryonCacheScoperequires network authority for network data; REST response shapes are unchanged. - Shutdown sample (D6.5): measurement ids come from
random_bytes(), and a v2 measurement writer (one ZADD, SET NX pipelined outside Cluster) sits behindobjectcache_measurement_format, which defaults tov1. - Runtime store (D5.3, D5.4): the in-memory cache of every backend is one
Cache\RuntimeStore(values and remembered misses, scopedforget/forgetGroup/forgetScope/forgetAll); every flush verb,switch_to_blogand the Relayinvalidated/flushedcallbacks clear exactly their scope, a Relay invalidation also drops a remembered miss,flushBlog()clears only that blog’s runtime copy, and the array failover runs on the same store (has()of a storednullis true, multisite scoped).flushBlog()now lives inPhpRedisObjectCache; theCache\Flush\FlushesNetworkstrait is removed. - Write policy (D5.12b):
Configuration::writePolicy()returns a typedConfig\WritePolicy(maxttl, query TTL, jitter, group TTLs, mitigations, negative cache, async) that the write path reads;ExpirationPolicydelegates to it. TTLs and stored bytes are unchanged.Configuration::relayUsesDefaultFilters()is new. - Prefetch (D5.7): a request’s prefetched keys load with one MGET over all groups (the client splits it by slot on Cluster) instead of one read per group; a reply of the wrong count or shape is a miss plus an error, is never cached, and closes the connection.
- Integrity protection (D5.2): the metadata fingerprint is read with a checked command, in the boot prefetch pipeline when possible; an unreadable (Unknown) fingerprint never flushes and is never overwritten, and paths written by a newer node are kept.
- ⚠️ Sentinel read routing (KI-28, D4.5): Sentinel now honours
replication_strategylike replicated servers:distribute(the default) also sends reads to the primary,distribute_replicasreads the replica set andconcentratereads one replica (before, every strategy read the whole replica set). With no healthy, ROLE-verified replica discovered, reads still fall back to the primary for every strategy; writes stay on the primary. - Lua group flush and analytics restore (D5.9): the group-flush script runs by digest (
EVALSHA;EVALonly afterNOSCRIPT, or once afterNOPERMforEVALSHAitself, then remembered per connection or Cluster primary); on Cluster the patterns without a hash tag go as ARGV in one call per primary, withoutRANDOMKEY. The analytics history is restored afterFLUSHDBinto a temporary key and merged withZUNIONSTORE(TTL kept), so measurements stored during the flush and the history both survive; a user withoutZUNIONSTOREgets the previous in-place restore with one logged warning. Restricted ACL users needEVALSHA(orEVAL) and, for the merge,ZUNIONSTORE(README: Restricted Redis ACL users). - ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Admin controllers (D7.4): the settings menu/screen hooks, the dashboard widget hooks and the plugin row link filters are registered by
AdminMenu,DashboardWidgetandPluginRowLinks; hook names, priorities, callbacks (still methods ofPlugin) and capabilities are unchanged. Code that callsremove_action()/remove_filter()with[$plugin, 'method']keeps working; the callback objects are the samePlugininstance. - Widget actions (D7.6): the dashboard widget actions are a
WidgetActionenum run in one flow (nonce, capability by scope, run, redirect) with unchanged capability, nonce and network-admin rules and status strings; flushes go through the newFlushServiceand are logged after they ran with their result, which now includes the site flush; a drop-in change whose cache reset failed shows adropin-flush-failednotice (DropinResult::FlushFailed), and the Network -> Sites flush reports an unreachable cache asblog-not-flushedinstead of doing nothing. - Layout and identity (no behaviour change): the PHP namespace is
ObjectCacheApp\(wasRedisCachePro\) andsrc/is split intoCache/,Backend/{Memory,Redis}/,Config/,Observability/{Log,Metrics,Insights}/,Diagnostics/,WordPress/{Admin,Rest,Cli,Dropin,Lifecycle,Mitigations,SiteHealth,Extensions}/,Product/,Exceptions/andSupport/; class short names are unchanged. The plugin lives inobjectcache-app/objectcache-app.php(Composerobjectcache-app/objectcache-app, text domainobjectcache-app), its constants areObjectCacheApp\Version/Filename/Basename, the instance is$GLOBALS['ObjectCacheApp'], the Debug Bar panel isObjectCacheApp_DebugBar_Insightsand the footer comment saysplugin=objectcache-app. No alias of the old namespace exists, so the plugin no longer collides with Object Cache Pro (one targeted compatibility alias of a global class name,RedisCachePro_DebugBar_Insights, is declared only when that name is free; see Fixed); when Object Cache Pro is already loaded the plugin does not start. The drop-in, the must-use loader and the must-use asset lookup probe only theobjectcache-appfolder. Configurations that name classes (logger,connector,cache) must use the new names. Stored state is unchanged:objectcache_*options, transients, cron hooks and capability, theobjectcache/v1REST routes, theWP_REDIS_*/OBJECTCACHE_*settings, Redis keys and metadata, the drop-in backup format and the key-growth fingerprints. Moving the folder deactivates the oldobject-cache-pro/object-cache-pro.phpentry without running its deactivation; deactivate the plugin first (this removes the drop-in), replace the folder, activate and runwp redis enable. The source repository is https://github.com/sekalan/my-cache (Brand::Repositoryand the readme link, deploy instructions, site links); drop-ins written with the previous repository URI stay owned (Footprint::PreviousDropinIdentitiesis unchanged). Characterization and the class graph (parents, interfaces, traits, constants, signatures) against the previous commit show no difference.
Fixed
- Relay 0.50.2 advisory: Diagnostics and Site Health recommend (never require) updating Relay 0.50.2, which can return undecoded values after a Redis Cluster topology change; the affected versions are
CompatibilityPolicy::RelayAdvisoryVersions. - Prefetch: a stored
falseis found again; falsy MGET positions are confirmed by one EXISTS pipeline instead of being treated as misses. - Counters (D5.6):
incr/decrsaturate atPHP_INT_MAX, and a WATCH conflict (EXEC abort) is retried with a fresh read (3 attempts in all), so concurrent increments are no longer lost; a transport error or a dropped connection is never replayed. - Debug Bar panel (D6.14a): the Object Cache panel derives from Debug Bar’s own
Debug_Bar_Panel(the private abstract shimObjectCacheApp_DebugBar_Panel, before the restructureRedisCachePro_DebugBar_Panel, is removed without an alias: a subclass written against it overridestitle()without its parameter and could not extendDebug_Bar_Panel). Its markup no longer reuses thedebug-bar-wp-queryanddebug-bar-phpids of Debug Bar’s WP Query and PHP panels (duplicate ids whenever those panels were shown); the wrapper isobjectcache-debug-barand every printed value is escaped. The registered class keeps the global nameObjectCacheApp_DebugBar_Insights, so Debug Bar’s menu ids stay plain CSS identifiers, and it loads only once Debug Bar has loadedDebug_Bar_Panel(a network-activated plugin boots before a site-activated Debug Bar;class_exists()on the panel class before that is false, not a fatal error). - Debug Bar compatibility alias (D6.14a):
RedisCachePro_DebugBar_Insights, the Object Cache Pro 1.25.6 panel class name that the restructure dropped, resolves again (deprecated, kept for one release). It is a targeted alias of one global class name, declared only when the name is free: next to a site-activated Object Cache Pro, which declares it itself, it is left alone instead of warning inside Debug Bar. - Debug Bar statuses (D6.3, done in D6.14a): “Redis Memory” follows Debug Bar’s “Memory Usage” (it was inserted second, before PHP, because it searched for its own slug) and “Redis” follows the database as before; a status whose neighbour is missing goes last. Both values are passed as escaped strings: Debug Bar prints status values as HTML, and the raw value from the server’s INFO reply was printed unescaped.
- Query Monitor commands panel (D6.14b): command parameters are cut to 200 characters before they are encoded (a 1 MB value is no longer encoded first; at most 203 characters are shown) and backslashes are no longer stripped from the shown JSON,
wp_cache_*functions are hidden from backtraces by prefix (thewp_cache_seartypo is gone), each row resolves its component once, every printed value is escaped, and the Debug Bar panel prints the request’srequestMetrics().
v1.26.0-rc.2 - 2026-10-08 (release candidate; supersedes the untagged rc.1 of 2026-10-04)
Changed
- Product name and homepage: the product is shown as “objectcache.app” and links to https://objectcache.app (
Brand::Name,Brand::Homepage,Plugin Name/Plugin URIheaders of the plugin, drop-in and MU loader, exception messages, Site Health labels, dashboard footer and update row). The readme link now uses the newBrand::Repository. A drop-in installed under the previous name (“Object Cache Project (Drop-in)”,Plugin URI: https://github.com/sekalan/wp-object-cache) still counts as this plugin’s own (Footprint::PreviousDropinIdentities), so it can be updated and removed; only that exact header pair qualifies. Exception messages differ from theredesign-acceptedcharacterization baseline only in the product name. - Logger levels (D3.11):
Logger::log()filters once (a precomputed lookup) and hands records towrite(), the level methods live in theLogsAtLevelstrait, aLevelFilterdecorator applieslog_levelsto anyLoggerInterfaceand theLogLevelenum parses levels; configured levels now match case-insensitively (['Warning']no longer silently drops warnings) and records at an unknown level such aswarnare still dropped but reported once per request. Subclasses overridinglog()and theobjectcache.<level>:format are unchanged. - Log records (D3.12): a
LogRecordFormatterwrites everyobjectcache.<level>:line on one line (CR/LF escaped) andErrorLogContextLoggercontext as JSON with throwables asClass: message @ file:line(was{}), invalid UTF-8 substituted and large strings/arrays cut short;ErrorLogLoggeraccepts an optional writer. The newLoggerResolverresolves theloggeroption in order (instance kept as given, PSR-3 logger throughPsrLoggerBridge, callable, class name) with the existing error messages;Configuration::setLogger()resolves through it (nullstill selects the default logger, and a class name no longer loads the bridge). - Exceptions (D3.13): default messages come from one
ErrorCopycatalog through theHasDefaultMessageconstructor (texts unchanged),RuntimeRequirementException::extensionMissing()/extensionOutdated()return the existing PhpRedis/Relay classes,ConfigurationException::missing()names an undecodableOBJECTCACHE_CONFIGinstead of sending the user towp-config.php, and the int-backedMetadataDriftenum backs the unchangedMetadataExceptioncodes and mirrors the risky option list (the per-request check keeps its literal list and loads the enum only on a mismatch);MetadataException::for()throwsInvalidArgumentExceptionfor an unknown option instead of an undefined-constant error. - Log buffer (D3.14):
ArrayLoggeris now aBufferingLogger, a ring buffer that drops the oldest record in constant time (it shifted the whole array per record once full), retains throwables as plain descriptions and can wrap any logger; the Query Monitor commands panel and tally read anyProvidesLogRecordslogger.messages(),setLimit(),omittedCount()(plusdropped()) and the class hierarchy are unchanged. - Configuration coercion (D3.1): every flag (top-level,
analytics.*,relay.*,core_mitigations,OBJECTCACHE_STRICT,OBJECTCACHE_PREFER_RELAY) accepts the same spellingstrue/false,1/0,on/off,yes/noin any letter case, sopersistent,shared,async_flushandstrictalso takeyes/no/1; integer options also take integer strings;timeout/read_timeoutreject negative values (an infinite or NAN timeout and a negativeretries, historically accepted, are still used as configured, with a warning); type errors read “namemust be a, given”. - Configuration choices (D3.2): serializers, compressions, cluster failover and Relay distribution/failover strategies are internal enums; public options and stored metadata stay strings and the
SERIALIZER_*/COMPRESSION_*constants stay; choices (alsobackoff,group_flush,network_flush,tracer,scheme) are matched case-insensitively;getClusterFailover()/getClusterDistributionStrategy()/getClusterFailoverStrategy()returnnullinstead of a fatal error without the client extension; codec support is checked in one place, and not while a known client’s extension is missing. - ⚠️ Connection URLs (D3.3): a new
Endpointparsesurl,servers(once, at load) and Sentinel-discovered hosts; socket paths keep their letter case and use theunixscheme (also throughurl, which usedtcp), a0password and a/0database apply, a scheme-less node URL keeps the configured scheme (TLS no longer drops to TCP), only DNS names and schemes are lowercased andparseUrl()keeps its array shape. - ⚠️ Configuration loading (D3.4): options resolve in a fixed order from a static key map, so key order no longer matters except where it historically decided (see “Upgrade compatibility”): an explicit
log_levelswins overdebug, integer and empty keys only warn andrelay_adaptiveis no longer reachable;safelyFrom()parses once and keeps the first error in that order; preset bounds come from the same schema. - ⚠️ Nested options (D3.5):
$config->analytics/->relay/->relay->adaptiveare immutableAnalyticsOptions/RelayOptions/RelayAdaptiveOptionsobjects with the same property names (the never-instantiatedSupport\*Configurationstubs and__clone()are gone); analytics values are validated (enabled: 'false'is false,sample_rateis clamped to 0–100, invalid values warn, see “Upgrade compatibility”),relay.adaptiveaccepts width/depth0, an integerratioand nameswidthin its error, and lenient parsing keeps valid sub-options. - ⚠️ Topology validation (D3.6):
validate()rejectssentinelswithout a non-emptyservice(unless aclustertakes precedence; this failed before as missing connection details); combinedcluster,sentinelsandserverskeep the historical precedence with a warning naming the ignored fields,topology()names the result and connectors dispatch with the same precedence, and topology errors areConfigurationInvalidException(still aConfigurationException). - Upgrade compatibility (D3.1–D3.6): a configuration that worked before neither fails nor changes behavior silently; where the redesign would have, the historical result is kept and a parse warning (
objectcache.warning:, once per request) names it. Combinedcluster/sentinels/serversvalidate and connect with the historical precedence (cluster, Sentinel, replication). Connection details apply in the configured order: aurloverrides thescheme/host/path/socket/port/database/credentials configured before it (warned as “portis ignored becauseurlis configured after it”), the options after it override the components it names (warned only for components the URL names with a different value), a URL’s/0database or:0port never overrides a configured one and a scheme-less URL selectstcp; ofhost/path/socket,network_flush/flush_networkandcluster_failover/slave_failoverthe one configured last wins (warned). Invalidanalyticsvalues no longer fail: flags andsample_rateare read as before ((bool),(float)), an invalidretentionorpersist_limitkeeps the current value instead of purging or no longer persisting the history. Aserversnode with an unknown role (such asprimay) is a replica, as before. Arelay.adaptive.widthabove 2^31 is used as before and the formulatrueis ignored. An invalid entry oflog_levelsis ignored next to a valid one (it failed the configuration before). - Logging integration (D3.11–D3.14):
log_levelsare stored as canonical lowercase PSR-3 levels without duplicates, parse warnings are written throughLogRecordFormatter(sameobjectcache.warning: …line) and respectlog_levelscase-insensitively, the buffer limit applies to anyBufferingLogger, and a configured logger is never wrapped, so$config->loggerstays the integration’s own instance (as before). - Client boot (D3.7): parsing no longer boots the client extension, so a configuration can be inspected without it; connectors’
connect()asserts it first,RuntimeRequirements::assert()/collect()check it separately (safelyFrom()reports an unmet requirement oninitExceptionnext to the parsed values) andclientNamefollows the last configured client or connector. - Configuration entry points (D3.8):
Plugin, Diagnostics, Doctor,wp redis cli/analytics, drop-in migration, Licensing andlog()load throughConfigurationLoader::fromEnvironment()and the drop-in throughConfiguration::fromEnvironment(), which holds the loader’s memo, so every caller applies theWP_DEBUG/SAVEQUERIESdefaults everywhere, parses each mode once per request and hands out copies; Licensing returns only a validatedtoken. - Configuration parsing cost (D3.9): keys resolve through a static map instead of string-built setter names, and the default (non-buffering) logger and the tracer are created when first read; parsing a typical configuration never loads
Coerce, the internal enums,ConfigurationLoader,LoadMode,PresetsorBrand, so the drop-in’s per-request work loads 26 classes instead of 27 and takes about 96–100 µs instead of 105–110 µs under a persistent OPcache (tests/benchmarks/configuration-request.php);from()+validate()with the logger and tracer reads takes about 7.5 µs instead of 14.5 µs (tests/benchmarks/configuration.php). - Per-request cost with tuned codecs (D3.9):
igbinary,lzf,lz4andzstdare validated against constant lists and the connector’ssupports(), andcluster_failoveragainst a constant list, soSerializer,Compression,ClientKindandBrandload only for an error message; an igbinary+zstd configuration loads 26 classes instead of 27 and takes about 9–13 µs less per request. - Per-request cost with
urlorservers(D3.9): URLs are parsed into arrays byConfiguration,Endpointobjects are built only to connect to replicated nodes and connectors no longer resolveTopology, and theurloverride check runs only when explicit connection details are configured;urlandserversconfigurations load 26 classes as before and take about 3–7 µs less per request. - Configuration exports (D3.10):
toArray()order and a newexport()/describe()come from the static schema;export()redacts the password, token, URL credentials and password-like TLS options at the source and feeds diagnostics, whose formatting moved toDiagnostics\ConfigurationReport(diagnostics()remains as a shim);Support/Types.phpand its classmap entry are replaced by@phpstan-type;updatesstays accepted and inert. - ⚠️ Requirement change (D2.22): Relay 0.8.0 or newer is now required (was 0.4.0) and PhpRedis 6.0 stays the minimum; all branches for older clients are gone (FLUSHDB ASYNC, CONFIG RESETSTAT/SLOWLOG RESET, connect host/read-timeout/TLS arguments, the positional Sentinel constructor and Sentinel/Cluster version gates), features newer than the minimum are detected by capability, and
RelayOutdatedException, Site Health, Doctor and diagnostics report the new minimums. - Admin templates (D2.8): flush logs name a deleted account “Deleted user #ID” instead of failing, tolerate incomplete or corrupt entries and escape the filtered
objectcache_flushlog_calleroutput; widget links, titles and labels are escaped and a missing Relay license or screen no longer dereferences null. - Admin scripts (D2.9): latency, adaptive-cache and chart tooltip data are HTML-escaped; each Tools module initializes on its own (a missing widget or failing module no longer stops the page) and no longer needs ClipboardJS; charts get their own options, x-axis times use the site timezone again, opening a postbox without charts no longer throws, a broken chart no longer stops the others and download names replace every dot of the host name.
- Assets (D2.18): a new
AssetRegistryserves every script and stylesheet by URL or inline fallback from one place; inline fallbacks are the shipped files verbatim (the regex minifier that could corrupt JavaScript is gone) and the must-use URL anchor is the first match, so an explicitWP_REDIS_DIRwins over a leftover legacy directory, memoized per instance.asset()/inlineAsset()remain as shims. - Slow log/command statistics (D2.6): CLI and Tools widgets share
SlowlogReport/CommandStats; slow commands sort numerically before the limit,microsecondsis no longer divided by 1000,--limitis -1 or 1..1000,--sortlists its fields, malformed INFO is tolerated, the widget no longer reads an undefined$error, and Redis Cluster reads every primary (slow lognodecolumn, summed statistics) like the resets already did. wp redis watch log(D2.16): seed once even from an empty store (which used to swallow the first measurements), look backmax(2, --seconds)seconds, de-duplicate by ID within that window, print batches oldest first and escape hostnames and values.wp redis cli(D2.17): built by the pureRedisCliInvocationand started from an argv array;tls_optionsmap to redis-cli TLS flags (--insecureonly on 6.2+), the password goes only throughREDISCLI_AUTH, a missing binary is reported instead of exit 127, and the exit code returns viaWP_CLI::halt()instead ofexit().- Diagnostics/Site Health PHP support dates now follow php.net’s supported-versions table (8.2 outdated from 2027, 8.3 from 2028, 8.4 from 2029, 8.5 from 2030; checked 2026-10-05); the inherited table graded 8.2/8.3 a year early (D2.11).
- Branding (D2.1): a new
RedisCachePro\Brandsupplies every user-facing product name and link; the dashboard widget, settings pointer,X-Redirect-Byheader, role-editor group labels,wp redis licenseheading, exception messages, Query Monitor notices and all topic documentation links no longer hard-code “Object Cache Pro”/objectcache.pro (topic links still point at the upstream reference documentation throughBrand::docsUrl(); group and capability ids are unchanged). - Dead code (D2.2): remove the never-enabled vendor Updates screen (
updates.phtml,update.phtml,options.js), vendor telemetry and URL normalization, the License model (only its constants remain, deprecated), the orphanhealth-check-objectcache-license/-apiAJAX handlers, the Query Monitor license block, emptybootAssets/bootTransientsand the WordPress < 5.3 branches;license(),token(),updatesEnabled(),pluginInfoRequest(),pluginUpdateRequest()and the notice shims stay, thechanneloption stays accepted but inert, the “Cache Analytics” hint now shows when analytics are disabled and the command statistics sort controls work. - Plugin rows (D2.19): the plugin and drop-in rows are matched by basename and drop-in ownership instead of a name regex, the Docs link points at the project readme instead of a dated branch, the always-failing “View details” link is gone, and the plugin information screen lifts
DISALLOW_FILE_MODSonly for itscapability_update_corecheck and restores it before rendering. - Exceptions (D2.21):
ObjectCacheExceptionis now aRuntimeException,ConfigurationMissingExceptionaConfigurationExceptionandDropinMigrationExceptionanObjectCacheException(supertypes only added);BacktraceLoggeris a deprecatedErrorLogLogger; invalid cache key errors name the first caller outside the cache (CallerLocator) instead of a WordPress backtrace summary, andInvalidCacheKeyTypeException::forType()was added. - Admin includes (D2.23):
wp-admin/includes/file.phpandplugin.phpare no longer required on every request; each call site loads them on demand throughSupport\AdminIncludes::ensure()(exceptPlugin\Footprint, whichuninstall.phploads without the autoloader and keeps a plain guardedrequire_once), and Debug Bar detection no longer needsis_plugin_active(). - Cache Insights (D15.1): hourly reads use the connection’s own
pipeline()(one-slot MULTI on Cluster, primary-pinned on replicated/Sentinel) instead of a native pipeline Cluster rejects, and reports name why hours are unavailable in a newunavailable_reasonfield (also shown bywp redis insightsand the Insights screen) without exposing connection details. wp_cache_incr()/wp_cache_decr()(D15.2): followWP_Object_Cachearithmetic on Redis and the array cache; numeric strings and floats are kept instead of resetting to 0, and results below zero still floor at 0.flushBlog()(D15.3): clear the site’s runtime cache even when the Redis delete fails, and still report the failure.- Analytics pruning (D15.4): run the removal loop inside the error boundary and count down by the members Redis reports as removed, stopping on a short or invalid reply instead of trusting the arithmetic chunk size.
wp_cache_delete_multiple()(D15.5): validate the EXEC reply before matching it to keys; a false or short reply fails every key with an explicit error instead of a PHParray_map/array_combineerror.- Group classification (D15.6): non-persistent and non-prefetchable group memos are capped at 1,024 entries for long-running workers, and adding non-prefetchable groups now invalidates stale memoized classifications.
- Licensing docs: production examples and operations guides use one envelope key ID,
prod-v1(matching the container default);fixture-v1stays only as the test default ofserve --signing-key-id. - Licensing deploy:
servewith the explicitLICENSING_AUTO_INIT=1opt-in (set indokploy.compose.yaml) runsdeploy-initon a completely empty volume, so a first Dokploy deploy needs no SSH; it never touches an initialized volume, refuses a partial one, is safe when two containers race, and every start on a missing or empty license store logs a loud warning. - Licensing deploy:
LICENSING_AUTO_INIT=1no longer stopsservewhen the layout differs fromdeploy-init’s (for example an environmentLICENSING_SIGNING_KEY); it logs that auto-init is skipped and serves an existing volume as before. - Package: shipped
README.mdandINSTALLATION.mdname the internal release records as plain text instead of linking to files the ZIP omits, and packaging now refuses a shipped document linking to an omitted top-level document. - Package: the plugin ZIP no longer ships internal release/operations records (
RELEASE-READINESS,READY-TO-DEPLOY,RELEASE-COMPLETION,IMPLEMENTATION-STATUS) and now shipsCORE-MITIGATIONS.md,CORE-OPTIN-MITIGATIONS.mdandVALKEY.md;README.paid.mdno longer claims a shipped upstream license file. - Lifecycle: add a standalone
uninstall.php(WordPress never fired theuninstall_*hook) that removes every stored option, transient and cron event on all sites and networks, and deletes the drop-in only when it is the plugin’s own; deactivation now clears the plugin’s cron events, on every site of the network when network-wide. - Schedule: retire the unread 5-minute metrics snapshot (its window kept 4,320 instead of 72 autoloaded entries); leftover events remove themselves and both snapshot options, the
every_five_minutesinterval is no longer registered and analytics pruning runs on the main site only. wp redis flush: reject site IDs on single sites instead of silently flushing everything, validate all IDs (positive, existing, same network) before flushing, attempt every site and exit non-zero with a summary on partial failure;flush-grouplikewise attempts every group, andresetnow aborts whenWP_REDIS_CONFIGis undefined.wp redis watch aggregate: omit integer median metrics without samples in the window instead of crashing with around(null)TypeError.- Hot path: build cache identifiers from a memoized per-site/group hashed prefix plus
rawurlencode($key)instead of serializing a lookup key on every call; identifiers are unchanged (verified againstKeyspace::id()). Look up global groups through a set, skip closure creation for untraced client calls, memoize command name casing, test runtime presence withisset()first and return early from remember-group and prefetch-recording checks. Runtime acceptance and benchmarks remain pending. - PhpRedis 6.0/6.1 (no
getWithMeta()): read values on direct connections with one atomic pipelined MULTI GET+EXISTS instead of GET followed by a plain MULTI, which PhpRedis sends one command per round trip (5 round trips per miss before, 1 now). Storedfalseand WRONGTYPE handling are unchanged; verified with php/igbinary and none/lzf/zstd/lz4 on PhpRedis 6.0.2 and 6.1.0. Cluster, Relay, replicated and Sentinel connections keep their existing read path. - Send MULTI..EXEC blocks of write-only commands inside a pipeline on native PhpRedis clients (one round trip instead of one per command), normalizing boolean replies; transactions containing reads keep the plain MULTI path. Skip UNWATCH after an executed EXEC, which already clears every WATCH.
- Prefetch: skip rewriting the request’s metadata record (a watched multi-command transaction) while the record read at boot already covers the recorded keys for at least half its TTL.
- Analytics: claim the periodic Redis INFO sample with a raw
SET NX EX 3(redis-sample) instead ofget()/set()oflast-sample, so measurements no longer credit their own hit/miss and runtime-cache metrics. - Confirm absolute EXPIREAT deadlines for key-growth hourly metadata and completed-scan history inside the existing watched transaction. Preserve SET’s finite EX fallback and reject unconfirmed expiry without replay. Delay/expiry-failure validation remains deferred.
- Require PHP 8.2+ and PhpRedis 6.0+ consistently in bootstrap, plugin, drop-in and Composer.
- Start a cold v2 namespace with lossless prefix/site/group/key encoding and group hash tags.
- Use pinned WATCH/MULTI/EXEC for split alloptions and bounded prefetch metadata, without conflict replay.
- Reuse up to eight clean direct transaction sockets per owning connection for Cluster and cache-enabled Relay. Preserve per-transaction Cluster discovery and discard sockets on errors, changed settings or unavailable native state checks; publish observation deltas only.
- Use a single watched primary for persistent counters; return false and invalidate local memory on conflicts or unconfirmed writes.
- Do not replay ordinary Sentinel writes or unknown/raw commands; suppress native retries during the send and retain existing read retries.
- Default group cleanup to incremental SCAN; delete at most 500 keys per command.
- Bound prefetch metadata to one hour, 256 keys per request and 1,024 request records per site by default.
- Bound memory logs and saved commands to 500 records and report omitted entries.
- Move redis-cli passwords to the child process environment; require CLI 5+ for password use.
- Fix an unknown
WP_REDIS_CONFIGoption recursing throughlog()until memory ran out: parse warnings are collected and written once per request, andlog()takes its levels from the running cache or a per-request memo instead of re-parsing (D1.1). - Fix early-boot
OBJECTCACHE_CONFIGhandling: declarelog()before use (decode failures hit PHP’s globallog()TypeError), recurse override/merge only into map/map pairs so scalars replace maps, ignore non-array constants and warn when bothOBJECTCACHE_OVERRIDEandOBJECTCACHE_MERGEare set (D1.12). - Failure page: escape the revealed error, reveal it only with
debug, WP-CLI or a single-site installation (no longer forWP_ADMIN/admin-ajax orwp-activate.php), send non-cacheable HTTP 500 (also on admin-ajax and beforeredis-error.php), and word it by failure type, naming bothWP_REDIS_CONFIGandOBJECTCACHE_CONFIG. - Callback loggers: a throwing callback no longer replaces the error being logged (first failure goes to
error_log), and log calls made from inside the callback are dropped instead of recursing. ObjectCacheException::from()coerces non-integer codes (such asPDOException’sHY000) instead of failing with aTypeErrorthat lost the original error; pass-through is unchanged.- Failed
SELECT: report database0instead ofunknown, include the server error (such asNOPERM) and suggest raisingdatabasesonly for an out-of-range index. - Replicated connections run
Transactionpipelines/MULTI andgetLastError()on the captured primary, and Relay replicated connections register listeners on every node, instead of failing on a missing client (Insights reads no longer fatal). - Relay Sentinel re-applies invalidation/flush listeners to rediscovered nodes after failover and closes replaced non-persistent nodes.
withTimeout()/withoutTimeout()restore each socket’s previous read timeout, so nested scopes keep the outer value; a socket that cannot be restored is closed and the first error is kept.- Metadata integrity: an unreadable fingerprint no longer counts as missing (no flush, no rewrite); strict-mode flushes are claimed by one process with
SET NX EX 30and the claim survives the namespace scan; a failed flush leaves the fingerprint unwritten; only WordPress upgrades flush; the prefix-change Relay ratio reset no longer sees a shadowed flush exception. - Forget the runtime copy when
set(),replace(),add()orset_multiple()fail or are ambiguous, and when XX is rejected; a rejected NX keeps it. - In-memory failover cache: treat stored
nullas a hit, report an invalid key once per operation, apply configured groups and multisite scoping through the sharedobjectcache_configure_environment()setup, and letflushBlog()default to the current blog (full flush on single sites) instead of failing with ArgumentCountError. - Multisite authorization:
objectcache_manageno longer falls back to the rawinstall_pluginsrole capability (held by every sub-site administrator) but tomanage_network_options; explicit grants and single-site behavior are unchanged.POST options,DELETE commands/slowlogandGET relay/adaptive/latencyrequire network authority, and sub-site widgets only flush the current site. Newobjectcache_network_capabilityfilter (defaultmanage_network_options). - Remove the unused, user-unbound
wp_create_nonce()/wp_verify_nonce()shadows from theRedisCachePro\Pluginnamespace; a regression check forbidswp_*function definitions undersrc/. - Site Health: the plugin’s async AJAX tests require
view_site_health_checksbesides the nonce, and the filesystem test (registration, AJAX andwp redisdiagnostics) honorswp_is_file_mod_allowed('object_cache_dropin')and writes no test file when drop-in changes are disallowed. - Multisite network authority is one rule for network-wide operations and drop-in writes: a super admin holding the
objectcache_network_capabilitycapability (defaultmanage_network_options; the filter can now only narrow it); the migration wizard, widget drop-in buttons and theobjectcache_managefallback use it, and full flushes document thatFLUSHDBalso deletes other applications’ keys in a shared Redis database. - CI: add a GitHub Actions workflow for PHP lint (8.2/8.3), PHPStan, every regression script on 8.2/8.3 through
tests/regression/run-all.sh(PASS line, empty stderr and a time limit required, not only the exit code), characterization againstredesign-acceptedwithOCP_CHARACTERIZATION_REQUIRED=1, Go tests, the Astro site build and byte-identical package rebuilds (D15.12). - CI: the PHP lint step runs under
shell: bash(pipefail), so a parse error now fails the job instead of being hidden behind the output filter (D15.12 review). - CI: the regression job runs in the official
php:<version>-cliimage like the integration fixture, sophp -nkeeps ctype and the other extensions that setup-php on Ubuntu ships as shared modules (D15.12 review). - Characterization: warn when the baseline ref resolves to
HEAD(PHP scripts andtests/characterization/run.py), fail instead of skip on a missing baseline wheneverCIis set, document that the accepted tag advances only after a wave review, and maketests/integration/run.pyrequire aPASSline from each regression script (D15.13). - Licensing transport: stop rejecting a successful read as a timeout when PHP served it from the stream buffer and left a stale
timed_outflag (spurious “request failed” on Windows under load, 9 of 24 parallel framing runs before, 0 of 32 after); the framing test starts its fixture without a shell and always ends it, waiting at most 10 s after a served scenario and terminating it at once after a failure, and PHPUnit’s regression wrapper terminates any script after 300 s (D15.14). - Tests: drop the obsolete
profile-take-referenceknown-defect branch fromtests/regression/profiles.php; the fixedProfileSession::take()and capturedHttpProfile::run()results are now asserted unconditionally (D15.15). - Hygiene: mark
tests/integration/status.jsonas a stale pre-redesign snapshot and record the bundled ApexCharts v3.31.0 (MIT), embedded svg.js plugins (MIT) and Tagify v 4.9.8 (no license named in the bundle) header statements inresources/vendor/README.md(D15.16). - Documentation matches the code (D15.17): TTL history is described as
ttl-v2lists with read-onlyttl-v1; the README update statement names the operator-configured Premium access path; hand-written test counts point to README “Running tests”; GAP-COMPLETION records the closedProfileSession::take()defect; the comment fallback note inCoreMitigations.php/CORE-MITIGATIONS.md says WordPress < 5.0; VALKEY.md lists the Relayredis_version >= 6.2.7gate. - Analytics
latest()(D2.3): pick the newest non-null value by timestamp; measurements are read newest first, so the gauges and thewatchcommands showed the oldest sample of the window. redis-commandsmetric (D2.4): the property is nowWordPressMetrics::$redisCommands, so the chart andfields=redis-commandsstop returning null; storedcommandspayloads decode through an alias and$commandsstays readable (deprecated).- Measurement decoding (D2.5): stored payloads fill only declared scalar fields (no dynamic properties or warnings for extra keys,
null, scalars or a missing timestamp) andrfc3339()always prints six fraction digits instead of1.0E-5-style garbage. - Metric filters (D2.7): ids returned by
objectcache_dashboard_metrics/objectcache_widget_metricswithout a definition are dropped with_doing_it_wrong()instead of a TypeError;relay-*ids are dropped silently without Relay. - Query Monitor (D2.20): command counts come from the connection’s observations and both sides are counted in commands (a logged pipeline or transaction counts its queued commands, plus MULTI/EXEC), and the panels show “N of M listed” with the gap attributed to log entries dropped at the buffer limit or to commands that were never logged;
QM_OBJECTCACHE_EXPENSIVE/QM_OBJECTCACHE_HEAVYare validated once inQmThresholdsand no longer defined by the template. - Site Health and widgets (D2.10): the disabled-state message names the actual source (constant, environment variable or both), the eviction policy name is escaped, an unreadable policy reports “unknown” instead of a blank “good”, and one rule (
noevictionwithout MaxTTL critical, with MaxTTL recommended) drives the dashboard widget, the Tools widget and Site Health alike; the Tools widget reads Relay advice fromDiagnostics::relayConfigurationAdvice()instead of building a Site Health result and no longer runsucwords()over license HTML. - Version policy (D2.11):
CompatibilityPolicygrades PHP, PhpRedis, Relay and the server by reason code with one message table; extension minimums come from the connector constants, so Site Health no longer calls PhpRedis 5.3-5.9 supported, the drop-in version line uses the same filtereddropinIsUpToDate()rule as the status (a drop-in newer than this release is current, inwp redis doctortoo), and the inherited PHP outdated dates are kept and marked as not verified offline. - Diagnostics CONFIG and memoization (D2.12): only Relay reads
tracking-table-max-keys, with a targetedCONFIG GETmemoized per instance (noCONFIG GET *, nothing for PhpRedis, no fatal without a connection, an unreadable value is a warning);isMustUse()/usingVCS()memoize false results;RelayConnection::hasInMemoryCache()is memoized per connection andrelayHasCache()delegates to it; the 90% saturation rule lives inDiagnostics::trackingSaturated(). - Diagnostics probes (D2.13): every server call goes through one probe; the first transport failure is recorded once (errors group, status “Not connected”) and later probes send nothing, so Site Health, the widgets, Query Monitor and the CLI degrade instead of throwing when Redis drops mid-request;
hello()reuses the live connection, is memoized, and the overview widget only calls it without a valid drop-in. - Filesystem probe (D2.14): writes a few bytes to a randomly named file and removes it in
finally(no fixedobject-cache.tmp, no leftover on failure) and reports an existing drop-in that is not writable. - Diagnostics input handling (D2.15): host detection is an ordered detector table with
str_contains()and null-safe reads (constant-only Pantheon no longer reads an undefined$_ENVkey),offsetGet()uses??so a missing group isnullwithout a notice, and JSON in environment variables is decoded with a depth limit and falls back to the raw value. - Connection layer (wave 4a; D4.1, D4.2, D4.6, D4.9, D4.10, D4.11, D4.12), no behavior change: the capability interfaces
RetryControllable(clients),RoutingPinnable(Cluster connections) andRelayCapabilities(Relay connections), with everymethod_existsprobe kept for third-party connections; replicated and Sentinel connections decide read-only commands through oneCommandCatalog; seven internal single-command reads run as checked commands (CheckedConnectionInterface; an error reply is aCommandFailedException, aConnectionExceptionthat keeps the native text out of its message), and Sentinel retries those only on transport errors; a client chooses its tracer once and calls the native client directly without one; the 16 client scans run through one internalClient::iterate(); the four single-node constructors share one configure step; every per-primary Cluster loop runs througheachPrimary(); the Lua group-flush script is read once per request;scanBatches(),listKeys()anddiagnosticScanBatches()share one internalKeyScanner(on Cluster each SCAN pins routing for that call only). Public signatures are unchanged.
Added
- Owner-approved opt-in historical TTL evidence: shared request budgets, a separate capped site/hour record with absolute retention, confirmed-write histograms and explicit completed-hour CLI/REST/admin reports. Existing Insights schema and cache policy are unchanged; see TTL-HISTORY.md. Final acceptance remains pending.
- Extend the existing real HTTP profile with bounded confirmed-write TTL evidence: requested/capped/sent seconds, histogram and explicit coverage; distinguish runtime-only writes and preserved counter expiry. Cover single/bulk, alloptions and remember publication without new Redis probes or hourly schema changes. Correlate bulk replies with queued IDs. Final validation remains deferred; see HTTP-PROFILE.md.
- Owner-approved portable configuration presets (
woocommerce,membership,publishing,multisite), explicit-field precedence, strict bounded manifest validation and exact group TTL caps before jitter. Add read-only CLI list/show/export/import/diff and current-site REST/Insights previews; report the cap in key diagnostics and TTL review. No automatic application, TTL rewrite or measured performance claim. Final tests remain deferred; see CONFIGURATION-PROFILES.md. - Opt-in key-growth diagnostics: bounded HMAC key/pattern observations and hourly HLL estimates; explicit fenced live SCAN with completion/topology checks; bounded history and conservative growth comparisons;
wp redis key-growth, scoped REST/admin actions and opt-in doctor guidance. Source review only; runtime/backend/performance acceptance remains pending. See KEY-GROWTH.md. - Read-only TTL/persistence evidence in Cache Insights: aggregate completed-hour activity across callers of each group, identify usage patterns, show current policy context and suppress directions on errors/overflow or incomplete site scope. Add admin/JSON/REST output and
wp redis insights --ttl-reviewwith bounded results. Per-key lifetime/reuse measurement and numeric TTL recommendations remain unimplemented; no settings change or runtime acceptance is claimed. wp redis profile <url>(source 2026-10-05): one real same-site anonymous GET, HMAC one-use ticket, captured-primary handoff, forced request-only collection, bounded per-call timing/size events and signed temporary report; JSON/table and explicit partial/unavailable outcomes. Exclude forced samples from hourly Insights. Final runtime/backend/performance validation remains pending; see HTTP-PROFILE.md.- Sampled Cache Insights (source 2026-10-05): 2% request sampling by default, bounded component/group attribution, logical payload coverage without reserialization, site/hour counters on the owner-approved WATCH path, bounded report reads, six review rules, existing-library admin charts, protected REST and
wp redis insights. No runtime or performance acceptance is claimed; see CACHE-INSIGHTS.md. wp redis why <key> --group=<group> --format=json|tablewith current scope/policy, memory flags, primary type/TTL/hash-marker and optional remember-lease metadata. Explain hypothetical write TTLs with –ttl, distinguish observed evidence from unknown history, omit cache values/raw identities and return distinct error/conflict exit codes. Final CLI/backend validation is pending.- Separate opt-in
ocp_remember()API with bounded primary-side leases/waiting, ownership-checked publication and caller-only fallback in protected scopes. Default-emptystampede_groupsenables two-phase lease invalidation for mutations and lease-first cleanup; preserve existing codecs, TTL caps/jitter, hash merging and WordPress signatures. See STAMPEDE.md for deployment and partial-EXEC limits. - Drop-in migration settings page with current/replacement fingerprints, private signed backup downloads, short-lived install confirmation and guarded restoration through WordPress’s filesystem API. Require core POST nonces, cache and plugin-installation capabilities, plus a network super administrator on multisite; retain existing lifecycle/CLI behavior.
- Optional
ttl_jitterpercentage (0-100, default 0): randomly shorten finite TTLs after existing limits, independently per bulk key and for split alloptions, while preserving counter and metadata expiry policies. - Current-request performance panel and existing-library historical charts.
- Permission-checked site/network cleanup preview exposing only key fingerprints.
- CLI doctor JSON/table reports and explicit preview-first legacy namespace cleanup.
- Source/drop-in/harness provenance and fixture/configuration matching for benchmark comparison.
Fixed
- Preserve full management group scans while converting incomplete/invalid reads to a generic REST error. Bound each memory pipeline to 500 keys, inspect the captured transaction client’s error state and distinguish missing memory observations from zero-byte measurements.
- Correct group response context filtering; expose non-atomic scan/missing-memory metadata without changing the successful list shape. Prevent overlapping UI scans, keep the selected memory mode stable during a request and label scan counts/memory as estimates. These source changes are untested.
- Keep Query Monitor output tied to its matching collector, preserve another extension’s replacement output, and keep the commands menu accessible without its parent cache menu. Guard optional backtrace and Members registration APIs.
- Show omitted log counts and retained-only command totals in Query Monitor, distinguish general log entries from Redis commands, tolerate incomplete raw-command log context and escape rendered command labels. Verification is deferred at the owner’s request.
- Repair the ApexCharts CDN fallback: use the correct WordPress tag filters, attach the existing SHA-512 integrity hashes to their exact CSS/JS source, and preserve other tag attributes. Keep the bundled assets, pinned CDN version and older WordPress fallback. Source change only; verification deferred at the owner’s request.
- Reject unsupported or unconfirmed namespace resets before recording a successful flush or writing reset metadata; convert backend PHP errors to the existing logged false result.
- Guard optional native ATOMIC/SCAN constants, align the diagnostic transaction property with its existing constructor check, clarify Insights counter types, and register return-valued WordPress hooks as filters while retaining callback identities.
- Correct WP-CLI option paragraph boundaries so format validation does not reject hours, group names, timeouts or event limits.
- Catch the actual ConnectionException in Relay CONFIG/SLOWLOG helpers; preserve false on connection errors, unrelated exceptions and no replay. A focused regression reproduced the prior uncaught exception.
- Honor WordPress’s found flag in
wp_cache_remember()andwp_cache_sear(), preserving cached false values without invoking the callback. These helpers do not acquire leases or wait. - Preserve active raw codec scopes across Sentinel primary/replica discovery and direct Cluster/Relay transactions; restore captured settings on both retired and replacement connections, including nested scopes and partial failures.
- Reject unsuccessful initial serializer/compression option setup and close the affected socket before serving cache operations.
- Separate drop-in ownership from inherited compatibility: automatic/admin enable, update and deactivation, plus CLI disable, preserve files whose product name and URI do not match this project’s bundled drop-in.
- Refresh header/stat caches before ownership decisions and after successful mutations; expose protected files in the widget, dashboard, Site Health and doctor. Explicit CLI enable –force remains available for deliberate replacement.
- Restore captured serializer/compression options after raw callbacks, including nested calls and partial setup failures; reject unsuccessful restoration, attempt to close the affected client and preserve the first error.
- Unwind raw-mode scopes on the original primary/replica connections even when another node fails or discovery replaces the connection references.
- Count error records omitted at the request buffer limit and expose them separately from logger omissions in cache info, diagnostics and the performance panel.
- Include omitted errors in overview/Site Health totals, reset the counter on fresh cache initialization, and escape Site Health error messages as text.
- Preserve the original transaction/callback failure when UNWATCH, DISCARD, mode inspection, routing restoration or client close also fails.
- Reject failed transaction cleanup instead of reporting success, and attempt to close uncertain native connections without replay.
- Normalize bare bracketed IPv6 Cluster seeds without appending an extra port.
- Preserve merged alloptions data after bulk writes and invalidate memory on failed hash updates.
- Keep prefetch metadata in the site that requested each key.
- Verify prefetch record/index membership before crediting eviction space; repair detected inconsistencies even when both containers have equal counts.
- Reject failed or malformed prefetch membership reads before executing writes; preserve no-replay behavior after partial EXEC failures.
- Reject failed prefetch cardinality reads before queuing writes; skip metadata reads after the request key budget is exhausted.
- Validate prefetch record expiration and reject invalid incremental deletion counts.
- Abort alloptions writes before EXEC on fresh existence-command errors, invalid TTL replies or a hash missing at the TTL read.
- Validate cleanup replies, propagate failures, and preserve scoped cleanup with the full group setting.
- Show database-wide effects of full cleanup in management UI and previews.
- Label global/network preview scopes correctly and show the effective cleanup method and atomicity.
- Keep doctor reports structured when client capability or drop-in inspection fails; never echo private exception details.
- Include failed-command wait time and align performance reporting sources.
- Remove the counter’s TTL-dropping SET fallback; use conditional KEEPTTL or remaining-TTL PX on older servers (see migration limitations).
- Resolve named Cluster profiles before launching redis-cli.
- PhpRedis: after an error reply in the middle of a pipeline (measured:
-OOM,MASTERDOWN, a queue-time-ERR) the pipelined MULTI and the single-round-tripgetWithExists()read left the remaining replies on the socket, and later commands on that connection read them as their own: a GET could return another key’s reply (H2, new in this release). The PhpRedis socket is now closed in that case and the next command reconnects with the same authentication and database; clean outcomes, including an aborted EXEC, keep the connection. Relay and Cluster are unchanged. - Relay: a site on a non-zero database read and wrote database 0 after the server closed its socket (restart, idle
timeout, network failure), because Relay’s native retry reconnects with AUTH but without SELECT whilegetDbNum()keeps the old database (C1, also in v1.25.6; Relay 0.20.0 and 0.50.2,connectandpconnect). For a non-zero database native retries stay off, so the dropped socket fails one command (a cache miss) and the next one runs in the configured database, which is also re-selected after every failure; a failed re-select sends nothing. Database 0 is unchanged. - ⚠️ PhpRedis persistent connections: a passwordless or wrong-password site could run as another site’s ACL user (C2, also in v1.25.6). With pooling (the default) PhpRedis pools persistent sockets by host and port only, ignoring the persistent id, and a pooled socket stays authenticated as its last user; AUTH was skipped without a password and a refused AUTH was ignored. A passwordless persistent connection now sends RESET first (one extra round trip; a fresh socket where the server has no RESET, before Redis 6.2 or renamed), and a refused AUTH fails the connection with a
ConnectionException(“Redis refused authentication …”), on persistent and fresh sockets; with a non-zero database orpersistentit was anInvalidDatabaseExceptionbefore (KI-24, K21). - Relay: a site configured with the user of another site on the same Redis but a wrong password ran as that user. Relay shares one server connection per endpoint in a process, and once it is authenticated
auth()with the same user name and any password returns true without asking the server (measured on Relay 0.50.2,connectandpconnect; C3, also in v1.25.6). A configured password is now also sent as a plain AUTH (one extra round trip per connection), and a refusal fails the connection with Relay’sRelay\Exception(K21), when connecting instead of on the first command. - Relay Cluster without ext-redis (KI-2, H1):
cluster_failovererror,distributeanddistribute_replicassilently becamenone, because the Relay connector passedRedisCluster::FAILOVER_*(missing without ext-redis, sonull) to Relay, which acceptsnullasFAILOVER_NONE. The connector now mapscluster_failoverfrom the loaded Relay’s ownRelay\Cluster::FAILOVER_*constants with or without ext-redis (the values are unchanged when ext-redis is loaded). All Relay Cluster routing options are resolved before connecting: an unknowncluster_failover, or acluster_failover/cluster_distribution_strategy/cluster_failover_strategyvalue the loaded Relay has no constant for, fails with aConfigurationInvalidExceptionand opens no connection, and a routing value Relay rejects closes the connection and fails the same way, instead of becomingnone. The Relay v0.22.0 requirement check for the cluster tuning options now also runs before connecting. Object Cache Pro 1.25.6 failed with a fatal error in this setup. The PhpRedis mapping is unchanged. - Relay: synchronous flushes (
async_flushoff, thewp_cache_flush()default), Lua group flushes and the analytics dump/restore around a flush failed with “Unable to set the connection read timeout” on every Relay topology, because Relay rejects the-1read timeout that PhpRedis uses for “no read timeout”. Relay connections (single, Cluster, replicated, Sentinel) now send0, which Relay treats as no read timeout; PhpRedis still sends-1, a rejected read timeout still fails closed and the previous read timeout is still restored afterwards (KI-27). - Query Monitor: on multisite the Object Cache panel’s Metadata table showed the Redis server version, the memory used by the whole Redis server and its eviction policy (with Relay also Relay’s cache state, memory and eviction policy) to every user who could see Query Monitor, including sub-site administrators without network authority. Without
CapabilityPolicy::hasNetworkAuthority()only the Cache, Client, Connector, Connection and Logger rows remain, the rule the Debug Bar statuses and the analytics route use; request metrics, network administrators and single-site installs are unchanged. wp redis why: an unsetmaxttlprinted “Maximum TTL: s” and now readsunset;--ttlshowed an uncapped range above the largest expiration Redis accepts (about 9.22e15 seconds minus the current time) as a valid write, and now warns that Redis rejects such a write and it stores no value. Configured caps and accepted ranges read as before.- Relay: on a non-zero database, a user that may not run INFO (for example
-@dangerous) failed its first connection in a process with “Unknown error (RELAY_ERR_OTHER)” instead of the server’s NOPERM, because native retries are off there (C1) and Relay then hides the reply to its handshake INFO, which it does not repeat. The connector now runs INFO itself in the pinned database and fails with aConnectionExceptionthat carries the NOPERM and says to grant+info, or names the handshake commands to check; the connection still fails, nothing runs in database 0 and a wrong password keeps Relay’s own error (measured on Relay 0.50.2,connectandpconnect). - Redaction of connection URLs:
Configuration::export()(anddescribe(),ConfigurationReport,json_encode()of exports) masked only the userinfo ofservers,sentinelsandclusterURLs and left query credentials (PhpRedis?auth=, Predis?password=) in plain text, and the diagnostics and Sentinel error messages still showedauth[]=user&auth[]=passpairs,access_token/api_keystyle names and credentials after a#. Export, diagnostics and Sentinel errors now share one rule (Support\Redaction): credential query parameters are masked in any letter case and URL-encoded, bracketed pairs andssl[passphrase]included, while the endpoint and other parameters (role,database,user) stay readable; aclusterstring is redacted too, andtls_optionsalso masksecret/authkeys and whole credential pairs.var_dump()/print_r()ofConfigurationandEndpointno longer show the password, token or URL credentials (__debugInfo()), and the parse warning for an unsupportedserversrole no longer echoes a role that could carry the rest of a;separated query. - Logs and Query Monitor: with
debugorsave_commandson, the Query Monitor commands panel showed cached values (sessions, password hashes, tokens) as command parameters, and theErrorLogContextLogger(and callback or PSR-3 loggers) received the parameters and theresultof every command and of failed commands, values included. Command records now keep the command, key names and options and describe each value by type and size (<string 1234 bytes>,<array 3 items>,<object WP_User>); results keep onlytrue,falseandnull. Unlisted commands keep their first parameter (the key), andAUTHandCONFIG SETvalues are hidden too;tests/regression/log-values.php. - WP-CLI: with a strict configuration (the default), an unreachable Redis server or an invalid configuration ended in a fatal error (“Call to a member function get() on null”) instead of a WP-CLI error, because the failure page sent HTTP headers first and WP-CLI’s
nocache_headershook callsis_blog_installed(), which reads the object cache that failed to initialize (H5; a regression from the failure-page hardening, Object Cache Pro 1.25.6 sent no headers). Under WP-CLI no headers are sent and theredis-error.phppage for visitors (which ended with exit code 0) is skipped, so WP-CLI’swp_die()handler reports a one-line error (“Error establishing a Redis connection.…”) with exit code 1, and the command still never runs on the in-memory cache. Web requests are unchanged. - Licensing server: the Dokploy deployment had no rate limit on the license API,
/portal/loginor/portal/recover(the old nginx template’s 5 r/s per IP was not carried over).servenow limits requests per client IP (token buckets with a bounded key table;X-Forwarded-Foronly from--trusted-proxies, read from the right) and login/recovery also per login name before any password check, answering429withRetry-After;dokploy.compose.yamladds a TraefikrateLimitlayer (newLICENSING_PUBLIC_HOST).LICENSING_AUTO_INITno longer prints the administrator password and recovery code to the container logs: they go to/data/secrets/initial-admin-credentials.json(0600) or come fromLICENSING_INITIAL_ADMIN_PASSWORD/_RECOVERY. The durable-portal Go tests no longer fail under umask 022. - Reads through
getWithMeta(PhpRedis 6.2 and newer, PhpRedis Cluster, Relay): an error reply such as WRONGTYPE (the key holds a list, hash or other non-string type) was not an error. PhpRedis answers it with[false, ['length' => 0]]and no exception, so on a single server the cache returned a storedfalsehit; RedisCluster and Relay answer a barefalse, which became a miss that entered the negative cache. Nothing was logged or counted. The read now clears the client’s last error first and fails when the client reports one, and a barefalseor afalseread from zero stored bytes is rejected as an invalid reply, so the read is recorded as a cache error and a miss and is never cached, as on the MULTI GET+EXISTS andgetWithExistspaths (KI-13 for Relay;tests/regression/getwithmeta-errors.php). - PhpRedis Cluster:
withoutTimeout()did not lift the read timeout (also in v1.25.6), because RedisCluster sets the read timeout of its node sockets only when it is constructed andsetOption(OPT_READ_TIMEOUT)returns true without reaching them (PhpRedis 6.0.2 to 6.3.0). A Lua group flush running longer thanread_timeoutwas cut with “Error processing response from Redis node!”, and a multisite flush then never reached the remaining primaries, leaving their stale keys. The timeout scope (Lua group flushes, the analytics dump/restore) now runs on a dedicated non-persistent cluster client built with the requested read timeout and the same seeds, credentials, TLS context and options, which is closed afterwards; when it cannot be built the operation fails before it starts. PhpRedis standalone and Relay are unchanged. - Diagnostics, Site Health, the Tools widget and
wp redis doctor: PhpRedis releases before 6.3.0 (6.0.x to 6.2.x; 5.3.7 has the same code) crash the PHP process (segfault incluster_update_slot()) when a Redis Cluster command is redirected (MOVED) to a node the client’s slot map does not know, which happens during resharding or slot migration, after adding nodes, on a failover shortly after a node restart and with primaries without replicas (fixed in PhpRedis 6.3.0, phpredis/phpredis#2552; Relay is not affected). With the PhpRedis client on Redis Cluster such a PhpRedis is now graded critical (“PhpRedis version can crash with Redis Cluster”: upgrade PhpRedis to 6.3.0 or newer, or use Relay), the PhpRedis diagnostic shows(Unstable with Redis Cluster)andwp redis doctorreports the backend as an error. Standalone, replicated and Sentinel setups, Relay and PhpRedis 6.3.0 and newer are not flagged;tests/regression/phpredis-cluster-crash.php. - Replicated, Sentinel and standalone reads through
get_multiple(): an MGET reply whose shape did not match the requested keys (too short, too long, not a list, or an error reply) could assign one key’s value to another key (also in v1.25.6). It is now a failed read: every key misses, the error is reported, nothing enters the runtime or negative cache, and the connection is closed (on replicated and Sentinel the primary and every replica). - ⚠️ Configuration isolation: a Redis Cluster configuration with a non-zero database (
database,urlor a seed URL) silently shared database 0, and replicatedserverswhose URLs resolve to different databases read from another database than they wrote to (also in v1.25.6). Both are now rejected withConfigurationInvalidException(lenient parsing records it oninitException), and the drop-in falls back to the in-memory cache until the configuration is fixed. For a cluster removedatabase(or set it to 0) and give each site its ownprefix; give every server URL the same database, or none. Then flush the object cache: nothing invalidates Redis while the in-memory fallback is in use, so after the fix it would serve stale entries (the error message, Site Health and the diagnostics say so too). Servers ignored next toclusterorsentinelsare still accepted. - PhpRedis persistent connections with a password: a WATCH or an open MULTI left on a pooled socket by a request that died mid-transaction aborted the next request’s transaction or read as a false conflict (KI-25, also in v1.25.6). Every persistent PhpRedis connection to a standalone, replicated or Sentinel node now sends RESET before AUTH and SELECT (one extra round trip per such connection with a password; a fresh socket where the server has no RESET, before Redis 6.2 or renamed). Persistent Redis Cluster clients are not RESET. Relay is not affected and is unchanged.
- Sentinel and replicated replica discovery (KI-23, also in v1.25.6): Sentinel discovery now skips replicas that Sentinel reports down (
s_down,o_down),disconnectedor with a replication link other thanok, and checks each replica with one ROLE before it serves reads, so an address reused by another Redis node (a replica of another primary, holding other data) is closed and skipped instead of serving that node’s data; with no healthy replica Sentinel reads from the primary as before. Replicated discovery uses only replicas the primary reportsonline. One extra round trip per discovered Sentinel replica. - Redis Cluster with PhpRedis 6.3.0 (KI-29): after a failover to a node missing from the client’s slot map, PhpRedis throws “Redis Cluster’s master data is incomplete” and kept failing every later call of that client. The client is now closed and rebuilt from the seeds (slot cache off while it maps), read-only commands are retried once on the new client, and writes, EVAL (also an
eval()of a key without hash tag that runs on every primary), EXEC and watched transactions are never replayed (they fail once; the next call uses the rebuilt client). The Lua group flush runs once more after its timeout scope ends, and the cluster flush and diagnostics fan-outs restart once over the fresh primaries. At most 3 rebuild attempts per request; the first rebuild is logged as a warning. PhpRedis before 6.3.0 still crashes in that case (see Diagnostics). - Redis Cluster synchronous flush (KI-15): a synchronous FLUSHDB on each primary now waits up to the larger of
read_timeoutand 60 seconds, so a large primary no longer fails a flush half done while a node that never answers still fails it (withread_timeout0 Relay waits without limit and PhpRedis the larger ofdefault_socket_timeoutand 60 seconds). PhpRedis runs the flush on a dedicated non-persistent cluster client: per synchronous flush one extra connection to map the cluster from a seed plus one per primary, closed after the flush. When that client cannot be built (seeds unreachable) the flush runs on the existing client withread_timeout, as in v1.25.6. Relay sets the bound on its client. Asynchronous flushes are unchanged. - Redis Cluster group flush (Lua
group_flushkeysorscan): the script now waits up to the larger ofread_timeoutand 60 seconds, like the synchronous Cluster flush (withread_timeout0 Relay waits without limit and PhpRedis the larger ofdefault_socket_timeoutand 60 seconds); before, PhpRedis waited without limit on its dedicated client. When that dedicated client cannot be built (seeds unreachable) the group is flushed on the existing client withread_timeout, as in v1.25.6, instead of failing. Standalone, replicated and Sentinel group flushes are unchanged. hscan(),sscan()andzscan()of a connection (K16): an error reply such as WRONGTYPE still returnsfalse, but is now logged and counted as a failed command, and a successful call counts as a command. On Redis Cluster with PhpRedis these calls threw the nativeRedisClusterException“Couldn’t read SCAN response” unwrapped; they now returnfalselike the other topologies. A transport failure is aConnectionException(it was the native exception). Relay Cluster sets no last error for such a reply, so itsfalsestays uncounted.- Relay Cluster:
license()on a Relay Cluster connection ended in a fatal “Call to undefined method Relay\Cluster::license()” error (KI-3); it now returns the Relay license from the staticRelay\Relay::license(), as Diagnostics and Licensing already read it. - The Relay adaptive cache REST endpoint (
objectcache/v1/relay/adaptive) ended in a fatal error (HTTP 500) when Relay has no adaptive cache; it now answers “The object cache is not supported.” (HTTP 400). - Query Monitor named the plugin’s connection classes (
PinnedConnectionsfor Cluster and Relay counter updates, the replicated connection on Sentinel) as the caller of their commands; every connection-layer frame is now hidden, so the caller is the code that used the cache. The object cache’s own internal frames are still shown for a few operations.
Acceptance
- Key diagnostics, native TYPE normalization and the shared deterministic jitter-range calculation have source review only. CLI/help/exit codes, metadata/error/side-effect contracts, input/integer limits, real topology/Relay behavior and performance checks remain final-phase gates.
- The approved separate remember API and mutation/cleanup integration have source review only. Syntax/static checks, option/false/null/hash/TTL contracts, 20-process races, partial EXEC/lost replies, real topology/Relay/Valkey checks and five-repeat performance measurements remain final-phase gates. No earlier passing report validates this addition.
- Drop-in ownership and management changes are source-reviewed only; focused fixtures and real WordPress lifecycle/UI/CLI verification are deferred to the final test phase. Header identity is not proof of file integrity or protection against concurrent external writers.
- The latest codec-restoration changes have source review only. Per the owner’s current workflow, tests remain required but will run together after the development changes are complete; earlier passing reports do not validate this patch.
- The error-buffer reporting update passed 38 PHP unit cases and 152 assertions, including a 24-check bounds/reporting scenario. Ten source/template/test files passed syntax checks. Scoped PHPStan reported eight findings reproduced on the preceding commit, with no new findings; it is not a clean static-analysis result. The earlier real WordPress run predates this update.
- After owner authorization, PHP 8.3.0/PHPUnit 9.6.37 passed 37 local regression cases and 148 assertions; one real WordPress/Docker feature test was skipped.
- Regression fixtures cover the approved v2/counter contracts and reject truncated local HTTP responses through either observed PHP error path.
- Eleven changed PHP files passed syntax checks; nine related production files passed PHPStan level 5 with zero errors.
- A subsequent fresh WordPress 6.8.3/WooCommerce 10.2.2/PHP 8.3.35/PhpRedis 6.1.0/Redis 7.4.2 run passed six real integration scripts and the lifecycle suite; the previously skipped contracts.php scenario passed. All 37 regression cases passed in the Linux container as well.
- The prefetch correction passed the 37 regression invocations, seven real integration scripts and lifecycle suite in a new fresh fixture. Its new real Redis scenario passed 50 checks for bounds, seeded metadata inconsistencies, TTL, serialization and site/data isolation. Partial EXEC failure injection remains covered by deterministic clients; added Redis read overhead is not yet measured.
- Runtime/drop-in bytes were checked against 187 source files. The disposable fixture’s containers, network and volumes were removed after the run.
- Real Cluster/Sentinel/TLS/Relay, two-customer checkout, 20-process/million-key, browser and baseline/candidate performance gates remain open.
- Prior revision results do not establish v2 correctness, backend parity or the five-percent performance gate.
- See MIGRATION-v2.md for cold rollout, legacy cleanup, and rollback into an unused namespace.
v1.25.6 - 2026-07-28
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Warn about using
WP_REDIS_DISABLEDin WP CLI - Hide configuration constant notice in WP CLI when unnecessary
Fixed
- Fixed metrics missing from
aggregateanddigestCLI watchers - Fixed malformed tags in health check
actions - Fixed dashboard widget spacing and overflow
- Fixed some commands from being routed to replicas when
cluster_failover=distribute*
v1.25.5 - 2026-05-08
Added
- Support WordPress 7.x theme colors
- Support Relay’s
cluster_(az|distribution_strategy|failover_strategy)options
Fixed
- Avoid unnecessary HTTP calls in rare scenarios
- Fixed admin menu update indicator
v1.25.4 - 2026-04-22
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Preserve valid options in fallback when
Configuration::safelyFrom()fails - Improved failure resilience of
wp_cache_get_multiple() - Improved logging of failed transactions
Fixed
- Resolved rare deprecation notice
- Improved rare pipeline initialization failure handling
- Throw exception in
PhpRedisClusterConnectionwhenping()orinfo()fail
v1.25.3 - 2026-04-08
Fixed
- Fixed Query Monitor 4.x compatibility
- Disable analytics before uninstalling plugin
- Prevent rare fatal error in shutdown handler
- Prevent rare array to string conversion warning
v1.25.2 - 2026-03-09
Added
- Added
wp redis licenseCLI command
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Improved error handling for
CONFIGandSLOWLOGcommands - Switch to per-interval deltas instead of cumulative totals in “Requests” charts
- Avoid timeouts by chunking analytics measurements retrieval
Fixed
- Fixed chart overlapping in WordPress 7.x
- Fixed rare uncaught
TypeErrorinLicensing
v1.25.1 - 2025-12-02
Added
- Added optional
analytics.persist_limitconfiguration option
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Avoid timeouts when flushing with
analytics.persistenabled - Limit analytics persist size
memory_limit / 2by default - Retry failed read commands on primary node before switching Sentinels
- Consider
*WithMeta()calls read-only on replicated connections
Fixed
- Disable cache if
WP_SETUP_CONFIGis defined - Fixed purging analytics measurements
- Fixed unit type of Relay “Memory” chart
v1.25.0 - 2025-10-22
Added
- Added API/CLI endpoints to reset slowlog and command statistics
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Enable
strictmode by default when aprefixis set - Prevent integrity flush after cache was reset
- Removed transient deletion limit of 10k sites
- Loosen Relay
prefixhealth check - Replaced
current_time('timestamp')withtime() - Avoid changing parameter names during inheritance
Fixed
- Fixed accessing
CONFIGon cluster connections - Fixed accessing
INFO COMMANDSTATSon old Redis versions - Fixed selecting databases on persistent connections
- Fixed KeyDB detection
- Prevent diagnostics warning when
WP_REDIS_DISABLEDis enabled - Hardened license health check against API outages
v1.24.5 - 2025-08-21
Fixed
- Fixed analytics charts not rendering under some conditions
v1.24.4 - 2025-08-20
Added
- Added
objectcache_analytics_snapshot_measurementsfilter
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Increased adaptive cache configuration defaults
- Support negative
relay.adaptive.eventsvalues - Switched all
stringdiagnostics toDiagnosticobjects - Use
#[SensitiveParameter]for strings that may contain passwords
Fixed
- Reduce number of measurements fetched for metrics snapshot
- Fixed
WP_REDIS_DISABLEDnot being respected in some places - Prevent type error trying to format
nullmetric values - Prevent rare diagnostics error when not connected
- Prevent rare error when uninstalling plugin using WP CLI
v1.24.3 - 2025-07-02
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Support Relay’s new adaptive cache
statusproperty - Support flushing Relay memory on clustered connections
- Disabled memory usage when scanning groups on clustered connections
- Improved
SLOWLOGhandling on clustered connections - Send sanitized metrics snapshot
Fixed
- Prevent error when running cron and using foreign object cache
- Prevent error when calling
INFOand using older PhpRedis versions - Fixed adaptive cache
eventsandratioconfiguration not taking effect - Handle permission errors when running
SLOWLOG|GETandMEMORY|USAGE
v1.24.2 - 2025-06-20
Added
- Added
wp redis analytics-countCLI command
Fixed
- Prevent excessive analytics snapshots
v1.24.1 - 2025-06-17
Fixed
- Prevent error when using ElastiCache Serverless instances
- Prevent
unexpected tokenerrors when scripts are inlined - Prevent event listener registration when adaptive cache widget is missing
- Switched to ES6 over ES11 syntax
- Fixed groups scan API call if permalinks are disabled
- Fixed up some widget padding
v1.24.0 - 2025-06-14
Added
- Added experimental support for Relay’s adaptive cache
- Added health, slowlog and command statistics widgets
- Added
queryttlconfiguration option (defaults to 24h) - Support calculating memory using in groups widget
- Added
groups,slowlog,commandsandprune-queriesCLI command - Added
objectcache_flushlog_limitfilter
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Prevent cache from being enabled if handshake fails
- Be more helpful when connection fails
- Improved diagnostics and various health checks
- Store cache analytics as plain JSON
- Don’t store path and hostname in analytics by default
- Check license gracefully when sleeping for 72+ hours
- Display latency in milliseconds (not microseconds)
- Sort results in groups widget
- Log
getWithMeta()calls asGET - Hide
wp_cache_set_last_changedin Query Monitor stack - Deprecated
countproperty onobjectcache/v1/groupsendpoint - Download cache groups as CSV instead of copying to clipboard
- Perform integrity flush if WordPress version changes
- Changed cache command log level from
infotodebug - Omit logging cache commands in default
ErrorLogLogger - Include
noticein default log levels
Fixed
- Fixed Batcache compatibility issue
- Fixed Relay client access replicated and clustered connections
v1.23.1 - 2025-03-17
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Support disambiguating
falsereturn values using$found(PhpRedis 6.2; Relay 0.10.1) - Show integrity flush reason in flush log widget
- Use unified base REST controller class
- Support calling
FLUSHDBwithoutASYNCon Relay connections
Fixed
- Fixed undefined array key access
- Fixed Dragonfly issues with lua scripts
- Fixed strict types error when using
ZRANGE
v1.23.0 - 2025-03-13
Added
- Added server type to diagnostics
- Added health checks for
KEEPTTLrequirements (Redis 6.0; PhpRedis 5.3)
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Bump required PhpRedis version to 4.0.0
- Promote
noevictionhealth check status to critical - Exclude WooCommerce’s
wc_cache_*group from prefetching - Retry loading cache metadata with backoff
- Reduced blocking time when pruning analytics measurements
- Switch away from deprecated Redis commands
- Support discarding pipelines and transactions
- Reduced memory footprint of
Connection::command()
Fixed
- Prevent integrity flush when metadata can’t be loaded
- Preserve key TTL when (de|in)crementing numeric key
- Fixed resetting log levels when
debugmode is disabled - Prevent rare warnings in
connectToSentinels() - Avoid undefined key notices in
RedisMetrics - Avoid calling invalid calls to
flushBlog()
v1.22.0 - 2025-01-23
Added
- Added
fulloption forgroup_flushconfiguration option
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Switch
group_flushdefault value toscan - Swap all
error_log()call for internallog()helper - Log all messages when
debugmode is enabled - Improve performance of analytics API requests
Fixed
- Fixed rare
TypeErrorinDiagnostics::redisVersion() - Fixed scheme detection for
wp redis clicommand - Fixed inverted multi/pipeline modes
- Fixed OpenTelemetry tracer integration
- Avoid cloning connection when computing metrics
Removed
- Removed deprecated
$RedisCacheProglobal
v1.21.3 - 2024-10-29
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Allow more cache key separators in Relay prefix health check
Fixed
- Fixed changelog not being accessible when
DISALLOW_FILE_MODSis set - Avoid rare notice when using Query Monitor
- Removed debug call
v1.21.2 - 2024-07-18
Added
- Support setting
strictmode usingOBJECTCACHE_STRICTenvironment variable
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Don’t enable
strictmode when aprefixis set
Fixed
- Fixed connection error when no Sentinel replicas are available
v1.21.1 - 2024-05-21
Fixed
- Fixed rare type mismatch when running admin lifecycle
v1.21.0 - 2024-05-08
Added
- Added Redis cluster support when using Relay
- Added
ErrorLogContextLoggerfor easier debugging
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Enabled
strictmode by default - Support
WC_SESSION_CACHE_GROUPconstant - Use decorrelated jitter backoff algorithm for connection attempts
- Check
wp_is_file_mod_allowed('object_cache_dropin')before automatically deleting drop-in - Added
Relay*Connection::keysInMemory()helpers - Improved latency widget content when using cluster connection
- Use configured logger and log levels when logging from plugin itself
- Resolved PHP 8.4 deprecation notices
Fixed
- Avoid rare fatal error in
Configuration::safelyFrom() - Fixed
objectcache_allow_dropin_modfilter
v1.20.2 - 2023-10-28
Fixed
- Fixed plugin version string
v1.20.1 - 2023-10-27
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Log exception message when cache reset fails
- Don’t run filesystem health check if
DISALLOW_FILE_MODSistrue - Changed filesystem test file name from
.object-cache-test.tmptoobject-cache.tmp
Fixed
- Fixed
async_flushwhen using PhpRedis v6.0 - Avoid
TypeErrorwhen usingWP_Error::get_error_data()
v1.20.0 - 2023-09-19
Added
- Added cache integrity protection
- Added analytics charts to dashboard widget
- Added
objectcache_widget_metricsfilter - Added
wp redis resetcommand - Added support for
OBJECTCACHE_OVERRIDEandOBJECTCACHE_MERGEconstants - Added support for PhpRedis v6.0
- Added
analytics.sample_rateconfiguration option
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Reduce default
retriesfrom5to3 - Refresh nonce using
X-WP-Nonceheader - Expose Relay license issues in Dashboard widget
- Refactored various flush mechanisms
- Expanded
ObjectCache::withoutMutations()callback type fromClosuretocallable - Delete
objectcache_*site options when uninstalling - Improved license API error handling
Fixed
- Fixed failover when using Redis Sentinel
- Bump
plugins_apipriority to prevent plugins from hijacking responses - Mute rare
undefined array keynotice influshBacktraceSummary()
Removed
- Removed
split_the_queryfilter in favor of native WordPress 6.4 behavior - Removed deprecated
rediscache_*filters - Removed deprecated
ObjectCache::flushMemory()method - Removed
objectcache_analytics_retentionfilter - Removed
--asyncoption fromwp redis flush
v1.19.0 - 2023-07-21
Added
- Added
strictconfiguration option - Added group flush log widget
- Added link to settings to dashboard widget
- Added Relay memory health check
- Added support for
OBJECTCACHE_PREFER_RELAYenvironment variable - Added support for
pathandsocketconfiguration options - Added support for
redis-error.phptemplate - Added
objectcache_cleanup_transientsfilter - Added
--skip-transientsoption towp redis enable
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Render connection exceptions similar to WordPress database errors
- Throw exception when selecting non-existent database
- Delete all transients from database after enabling cache
- Support logging early flushes before plugin code was initialized
- Improved
WP_Query::get_posts()performance usingsplit_the_query - Made Relay diagnostics more helpful
- Renamed
relay-memory-activetorelay-memory-used - Not longer recommend disabling
prefetchandsplit_alloptionswhen using Relay
Fixed
- Display Relay’s memory consumption more accurately
- Improve handling non-fatal
MGETfailures - Prevent
wp_cache_init()initializing twice - Avoid rare fatal error when parsing JSON responses
- Avoid confusing hiredis error message Relay connection times out
- Avoid fatal error when
gmt_offsetis not valid
v1.18.2 - 2023-04-04
Added
- Added Query Monitor constants to panel
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Renamed
ms-cache-mediantoms-cache-avg
Fixed
- Discard transactions if they fail
- Prevent REST API responses from being cached
- Fixed measuring analytics writes
- Fixed
storeWaitAveragecalculation - Fixed supported Redis version indicator when using Relay
v1.18.1 - 2023-03-24
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Updated End-User License Agreement
- Don’t flush cache when updating drop-in
Fixed
- Fixed cache timing metric
- Fixed widget flush button label on multisite
- Fixed flushing groups that end with blog id on multisite
v1.18.0 - 2023-02-20
Added
- Added
wp redis flush-groupCLI command
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Reduced overall memory usage
- Made cache key generation slightly faster
- Enable flush logging by default
- Log
warninglevel by default - Execute not split
alloptionsreads on primary node - Refactored object cache metrics to use new
ObjectCacheMetrics - Enabled flush logging when
save_commandsis set - Disabled command logging entirely unless
save_commandsis set - Return primary node from
*SentinelsConnection::client()instead of sentinel client
Fixed
- Handle foreign keys without a group in groups REST API endpoint
- Respect
async_flushwhen usingwp_cache_delete()
Removed
- Dropped support for Query Monitor <=3.8.0 backtraces
- Removed metrics keys from
info()in favor ofmetrics() - Removed
backtrace_summarylogging and deprecatedBacktraceLogger
v1.17.1 - 2023-01-28
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Switched to faster Zstandard compression level
- Handle non
int|stringcache keys stricter and more gracefully - Throw exception for invalid cache keys when
debugoption is enabled - Don’t let the perflab plugin hijack the object cache drop-in
- Defer registering
wp redisCLI command
Fixed
- Fixed several multisite blog flushing issues
- Fixed accessing client on replicated connections
- Fixed setting
analyticsoption to boolean - Fixed calling
get_plugin_data()on non-existent drop-in
v1.17.0 - 2022-11-23
Added
- Added support replicated and sentinel Relay connections
- Added
group_flushconfiguration option supportingkeys(new faster default),scan(previous default) andincremental(enormous datasets) - Added
tracerconfiguration option supportingnew-relicand globalopen-telemetrytracer providers - Support
network_flushoption when using Redis Cluster - Support New Relic tracing for Redis Cluster, Redis Sentinel and Relay clients
- Added
*Connection::listKeys()helpers - Added
PhpRedisClusterConnection::eval*()helpers - Added Redis Server version health checks and indicators
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Bumped scan and batch removal from
100to500keys - Flush more prudently even on main site when using
network_flush - Indicate whether the network or site will be flushed in overview widget in multisite environments
- Renamed all the things from master(s) to primary/primaries with backwards compatibility
- Improved must-use plugin detection
- ⚠️ Added
client()method toConnectionInterface - ⚠️ Use new
ClientInterfacein allConnectionInterfaceimplementations - ⚠️ Renamed
Connectorinterface toConnectorInterface - ⚠️ Renamed
handleBlogFlush()toshouldFlushBlog() - Renamed
flush_networkoption tonetwork_flush - Use
ObjectCache::$blogIdinstead ofget_current_blog_id() - Use
ObjectCacheCollector::get_storage(): QM_Datareturn type - Show received bytes and sent bytes in Query Monitor
- Strip slashes from commands in Query Monitor
- Improved support for
scan()and*scan()methods - Delete FOSS drop-in upon plugin activation
Fixed
- Fixed various Redis Sentinel issues
- Fixed
Invalid regular expressionin Safari - Fixed parsing
rawCommand()in Query Monitor calls when using Redis Cluster - Fixed health check for configuration constant being defined too late
- Fixed attempted property access on null in
Diagnostics::relayHasCache() - Fixed groups widget padding
- Fixed inverted “Relay Cache” metadata in Query Monitor
Removed
- Dropped Twemproxy support
- Dropped
PhpRedisClusterConnection::scanNode()helper - Dropped
*ObjectCache::Clientconstants - Dropped
WP_REDIS_PHPREDIS_OPTIONSconstant
v1.16.4 - 2022-10-31
Added
- Added support for WordPress 6.1’s
wp_cache_supports()
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Refer to “external cache” as “datastore” everywhere
- Hide
wp_cache_get_last_changed()andwp_cache_flush_group()in Query Monitor
Fixed
- Fixed inverted “Relay Cache” diagnostic
- Fixed rare undefined
OPT_MAX_RETRIESconstant error - Don’t use WordPress 5.3’s
WP_REST_Request::has_param()
v1.16.3 - 2022-10-09
Added
- Added new
wp redis statuscommand - Added
objectcache_omit_settings_pointerfilter - Added
relay.cacheconfiguration option
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Improved support for Relay’s “client only” mode
- Renamed
wp redis infotowp redis diagnostics - Made
wp redis infoan alias ofwp redis status - Refined hosting provider detection
- Use new
Connection::$classproperty for FQCNs
Fixed
- Fixed rare fatal
ValueError
Removed
- Removed no longer needed
Relay::dispatchEvents()calls
v1.16.2 - 2022-09-29
Added
- Added support for Relay’s “client only” mode
- Added compatibility with new Query Monitor data classes
- Added
objectcache_allow_dropin_modfilter - Added
relay.allowedandrelay.ignoredconfiguration options
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Append context to
objectcache_*_errorerrors - Verify
Transactionresult type and count - Make it easy to copy all cache groups to the clipboard
- Refined API health check and diagnostics
- Refined overview widget
- Refined analytics charts loading and messages
- Refined hosting provider detection
Fixed
- Avoid executing empty transactions
- Fixed update channel field availability
- Fixed Query Monitor request time ratio calculation
- Fixed rare Query Monitor issue when connection is
null - Hide more update notices when
updatesisfalse - Don’t inline widget CSS twice
v1.16.1 - 2022-08-29
Fixed
- Fixed health check condition
v1.16.0 - 2022-08-22
Added
- Added WordPress 6.1
wp_cache_flush_group()support - Added REST API endpoint for plugin options
- Added
objectcache_omit_analytics_footnotefilter - Added connection retries
- Added support for
OBJECTCACHE_CONFIGenvironment variable - Added integration for WP User Manager
- Added
withTimeout()andwithoutTimeout()connection helpers
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Pass PHPStan L7
- ⚠️ Made
Plugin,ConfigurationandTransactionclasses final - ⚠️ Added
MeasuredObjectCacheInterface - ⚠️ Added
commands(),memoize(),ioWait()andwithoutMutations()toConnectionInterface - Reduced default (read-)timeout from
5.0sto2.5s - Reduced default retry interval from
100msto25ms - Use
retry_intervalconfiguration option as backoff base - Use
read_timeoutconfiguration option as backoff cap - Use option API endpoint to save various settings
- Append backtrace to invalid cache key type log message
- Overhauled
flush_runtime()andflushRuntime()methods - Default to
defaultgroup inObjectCachehelpers - Accept any
callableforloggerconfiguration option - Catch callback exceptions in
PhpRedisConnection::withoutMutations() - Improved retry/backoff support for Relay connections
- Support Relay event listeners for WordPress 6.0
*_multiple()methods - Renamed
defaultbackoff tosmart - Only calculate cache size when needed and do so more memory-friendly
Fixed
- Fixed handling invalid cache keys
- Fixed loading of settings styles when must-use is symlinked elsewhere
- Fixed dashboard widget positioning
- Relaxed URL validation
- Avoid timeouts when deleting by pattern
- Avoid rare key identifier collisions
- Prevent rare analytics restore failure
- Fixed up
PhpRedisReplicatedConnectionlogic formulti()andflushdb()calls - Import missing exception in
Configuration\Concerns\Sentineltrait - Fixed return value of
Updates::setUpPluginInfo()when error occurred - Drop
mixedtype inPhpRedisClusterConnection::scanNode() - Prevent loading plugin more than once
- Don’t hijack
actionparameter on dashboards
Removed
- ⚠️ Removed deprecated
flushRuntimeCache()helper
v1.15.2 - 2022-06-30
Added
- Added SQL queries metric
Fixed
- Don’t require
ext-rediswhen running Relay transactions - Only hide upgrade notice in must-use setups
- Tweak widget latency warning color
- Fixed rare error of
get_num_queries()not being available
v1.15.1 - 2022-06-19
Added
- Show basename in diagnostics
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Add Redis and Relay samples to analytics footnote
- Narrow type hint to
TransactioninPhpRedisConnection::executeMulti()
Fixed
- Handle PHP 7.0/7.1 environments gracefully
- Show error when using bad plugin slug
- Don’t render analytics when not connected
- Avoid rare undefined index when not connected in Query Monitor
- Catch all
Throwableerrors inObjectCache::error(), not only exceptions
v1.15.0 - 2022-06-10
This releases introduces a settings page to keep an eye on cache analytics, manage plugin updates and use diagnostic tools.
Added
- Added analytics charts under Settings > Object Cache
- Added plugin updates under Settings > Object Cache -> Updates
- Added various tools under Settings > Object Cache -> Tools
- Added WordPress 6.0’s
wp_cache_*_multiple()andwp_cache_flush_runtime()functions - Added support for Redis Sentinel
- Hijack all transactions to allow command logging
- Added
X-Redirect-Byfor all redirects - Added
analytics,sentinels,serviceandrelay.invalidationsconfiguration options - Added REST API endpoint for analytics, cache groups and latency
- Added
master()andreplicas()toPhpRedisReplicatedConnection - Added
nodes()toPhpRedisClusterConnection - Added
updatesconfiguration option - Added
wp redis analyticsCLI command that mimics REST API endpoint
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - ⚠️ Require PHP 7.2+
- ⚠️ Require Relay v0.4.0
- ⚠️ Added
flush_runtime()toObjectCacheInterface - ⚠️ Added
add_multiple(),set_multiple()anddelete_multiple()toObjectCacheInterface - ⚠️ Added
connectToSentinels()andconnectToReplicatedServers()ConnectionInterface - Use group name as hash slot on cluster connections
- Deprecated
flushMemory()in favor offlushRuntime()for naming consistency - Redirect to settings after activation
- Allow analytics to be restored after cache flushes
- Only accept integers and non-empty strings as key names
- Dropped
stringtype for$keyin severalObjectCacheInterfacemethods - Hide misleading Relay statistics in
wp redis info - Reverted: Store
alloptionsas individual keys when using Relay - Increased Batcache compatibility
- Disabled
flush_networkoption when using Redis cluster - Marked PhpRedis v5.3.4 and older as outdated
- Catch
Throwableeverywhere, notException - Use a single
window.objectcacheobject - Highlight expensive commands in Query Monitor
- Be more helpful about missing command logs in Query Monitor
Fixed
- Fixed rare error when enabling drop-in
- Block
wp redis enablewhenWP_REDIS_CONFIGis not set - Fixed instantiating configuration without valid client extension present
- Avoid fatal error in
CommandsCollectorwhen no connection is established - Show
rawCommand()calls as actual commands in Query Monitor - Various other bug fixes small additions and improvements
- Fixed selecting non-zero databases in
wp redis cli - Fixed rare rendering issue with
wp redis watch digest - Fixed normalization of IDNs
- Don’t request filesystem write access to check for drop-in existence
- Fixed rare bug when flushing specific site via
wp redis flush 1337
Security
- Prevent risky plugin auto-updates
- Prevent plugin upgrades when using version control
v1.14.5 - 2022-03-22
Added
- Store
alloptionsas individual keys when using Relay - Added health check for Relay configuration
- Added
Plugin::config()helper method
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Bump Relay requirement to v0.3.0
- Sped up
ObjectCache::id()lookups by caching prefix - Sped up
alloptionshash deletion when usingasync_flush - ⚠️ Renamed
SplitsAllOptionstrait toSplitsAllOptionsIntoHash
Fixed
- Fixed support of older Query Monitor versions
- Added missing
retriesandbackoffto diagnostics - Avoid rare error in
Connection::ioWait() - Avoid rare
TypeErrorinDiagnostics - Avoid rare error in Query Monitor when no connection is present
v1.14.4 - 2022-02-03
Added
- Introduced
ObjectCache::ClientandObjectCache::clientName()
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Use
QM_VERSIONto detect Query Monitor version - Convert logged commands names to uppercase
- Avoid log spam when calling Relay’s
socketId(),socketKey()orlicense() - Make
isMustUse()andusingVCS()helpers static - Ignore all connection methods in Query Monitor backtraces
- Use new
qm/component_type/unknownfilter to set component type
Fixed
- Avoid warnings when displaying rare commands in Query Monitor
v1.14.3 - 2021-12-30
Added
- Added file header health checks
- Use Query Monitor backtraces and components when available
- Added integrations for several user role editors
- Detect must-use installations and VCS checkouts
- Respect
WP_REDIS_UPDATES_DISABLEDconstant and environment variable - Added
Plugin::Capabilityconstant - Added
Plugin::$directoryvariable
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Use
REQUEST_TIME_FLOATwhen available for improved accuracy - Improve handling when
WP_REDIS_CONFIGis set too late - Use
current_screenaction to register dashboard widgets - Use
wp_add_inline_style()for widget styles
Fixed
- Replaced non-functional capability checks using
map_meta_capwithuser_has_capfilter - Restored plugin meta links
- Restored mu-plugin and drop-in update notices
- Disable update button in must-use setups
- Corrected value used for total Relay memory
- Avoid warning in
DiagnosticswhenWP_REDIS_CONFIGis not set
v1.14.2 - 2021-12-12
Added
- Added
objectcache_dashboard_widgetfilter - Added
objectcache_network_dashboard_widgetfilter - Added
backoffandretriesconfiguration options - Added
pre_objectcache_flushfilter to short-circuit the flushing - Safeguard against update confusion attacks using
Update URIplugin header - Added
sharedconfiguration option to show key count instead of database size in shared environment
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Use decorrelated jitter backoff algorithm by default for all connections
- Append analytics comment to all XML feeds
- Show license state in Query Monitor and diagnostics
- Collect Relay key counts in metrics
- Bump Relay requirement to v0.2.2
- Memorize
Relay::stats()calls
Fixed
- Several PHP 8.1 compatibility fixes
v1.14.1 - 2021-10-26
Fixed
- Fixed invalid nonce errors
Removed
- Removed unnecessary
phpversion()andsetOption()calls inRelayConnector
v1.14.0 - 2021-10-26
⚠️ This release contains minor breaking changes.
Added
- ⚠️ Added
Connector::supports()method - ⚠️ Added
ObjectCacheInterface::boot()method - Added Twemproxy support
- Added
ObjectCache::metrics()method - Added
Connection::ioWait()method - Added
Plugin::flush()helper - Added several
Diagnostichelper methods - Display Relay cache size in dashboard widget
- Track reads, writes, hits and misses counts
- Added cluster support to
wp redis cli - Allow clusters to be flushed asynchronously
- Added backbone for analytics and
wp redis watchcommand with 3 watcher types - Added environment type and host to all diagnostics
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - ⚠️ Changed dashboard widget identifier to
dashboard_objectcache - Deprecated
$GLOBALS['RedisCachePro'], use to$GLOBALS['ObjectCachePro']instead - Deprecated
rediscache_managecapability, use toobjectcache_manageinstead - Deprecated
rediscache_validate_dropinfilter, useobjectcache_validate_dropininstead - Deprecated
rediscache_validate_dropin_versionfilter, useobjectcache_validate_dropin_versioninstead - Deprecated
rediscache_check_filesystemfilter, useobjectcache_check_filesysteminstead - Trigger
E_USER_WARNINGinstead ofE_USER_NOTICEinObjectCache::__get() - Always use asynchronous flushing with Relay
- Flush the cache when calling
wp redis enableandwp redis disable, unless--skip-flushis passed - Don’t
EXPIREthealloptionshash map - Memorize
PINGandINFOresults when feasible - Register shutdown function to close cache in
wp_cache_init() - Store prefetches when closing cache
- Only log incompatible key prefetch warnings in
debugmode - Show extended metrics in Query Monitor panel
- Simplified Debug Bar integration
- Moved CLI commands into
Consolenamespace - Boot connector when setting client in the configuration, not in
wp_cache_init() - Improved error messages when checking of compression/serializer in configuration
- Use SPL autoload function in
bootstrap.php - Increased priority of dashboard widget
- Set default
timeoutandread_timeoutto5seconds - Set default
retry_intervalto100milliseconds - Always verify invalid licenses when running health checks
- Bumped the HTTP timeout for license health checks to
15seconds - Invalidate drop-in file opcode when disabling the cache
- Cache
get_plugin_data()calls to improve performance - Flush the cache when enabling/disabling the drop-in via dashboard widget and when deactivating the plugin
- Support must-use Query Monitor setups
- Bumped
prefixlimit to32characters
Fixed
- Speed up API health check
- Fixed some rare PHP notices
- Fixed fatal error when using
urloption without password - Prevent unnecessary config calls in
RelayObjectCache - Support
object-cache-pro.phpbasename setups - Fix PHP 7.1 and older compatibility in
License
Removed
- Removed unnecessary confirm dialogs from dashboard widget action
v1.13.3 - 2021-06-08
Added
- Support passing function names to
loggerconfiguration option
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Improved Relay integration and support
- Improved unsupported
compressionandserializererror messages - Renamed more things to “Object Cache Pro”
Fixed
- Support
urloption without usernames - Ensure
wp_debug_backtrace_summary()is loaded to increase Batcache compatibility
Security
- Hide passwords in
urlfrom diagnostics
v1.13.2 - 2021-04-29
Added
- Added
relay_listenersconfiguration option - Added a
BacktraceLoggerlogger for easy debugging - Added wildcard support in non-prefetchable group names
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Split up
setMutationOptions()methods
Fixed
- Fixed flushing clusters when using a TLS connection
v1.13.1 - 2021-04-14
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Disable prefetching for CLI and API requests
- Added
userloginsandwc_session_idto non-prefetchable groups - Prevent even more
__PHP_Incomplete_Classerrors when using prefetching
Fixed
- Fixed type error in
PrefetchesKeys
v1.13.0 - 2021-04-12
Added
- Added support for Relay
- Added
clientconfiguration option - Added
tls_optionsconfiguration option - Added
ObjectCache::withoutMutations()helper - Added
PrefetchesKeys::deletePrefetches()helper - Added
infolog lines towp_cache_init() - Added wildcard support in non-persistent group names
- Show command count and argument class names in Query Monitor
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Respect
debugconfiguration option inwp_cache_init() - Added
Connector::boot(): voidinterface method - Deprecated
WP_REDIS_PHPREDIS_OPTIONSconstant - Renamed several internal exceptions
- Access fully qualified constants
- Expect
PhpRedisConnectioninPhpRedisObjectCacheconstructor - Use high resolution time when available
- Increased command time decimals from
2to4 - Refactored license code to be more graceful
- Prevent
__PHP_Incomplete_Classerrors when using prefetching
Fixed
- Fixed flushing networks when using the
siteorglobaloption - Fixed preloading in multisite environments
- Fixed prefetches count discrepancies
v1.12.0 - 2020-12-23
Added
- Improved PHP 8 compatibility
- Added support for Batcache
- Support flagging groups as non-prefetchable
- Added
ObjectCache::deleteFromMemory(string $key, string $group)method - Added
ObjectCache::flushMemory()in favor ofObjectCache::flushRuntimeCache() - Added
rediscache_validate_dropinfilter - Added
rediscache_validate_dropin_versionfilter
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Support loading the object cache as early as
advanced-cache.php - Changed default value of
cluster_failovertoerrorto improve stability - Refactored
flushBlog(int $siteId, string $flush_network = null)method - Check
wp_is_file_mod_allowed('object_cache_dropin')before automatically updating drop-in - Marked PHP 7.3 as outdated
Fixed
- Prevent another rare undefined variable notice in
wp_cache_init() - Resolve incompatibility with Query Monitor 3.6.5
- Updated some links to the documentation
v1.11.1 - 2020-11-12
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Only preload groups with at least two keys
Fixed
- Convert integer group names to strings
v1.11.0 - 2020-11-11
Added
- Added prefetching 🚀
- Added
ObjectCache::flushRuntimeCache()method - Added
PhpRedisConnection::withoutMutations()method - Added support for Query Monitor’s new backtraces
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Improved memory usage display in widget
- Speed up command execution when using replication
- Improved parameter formatting in Query Monitor
- Attach backtrace as array along with backtrace summary to log messages
- Moved runtime cache helpers from to
ObjectCacheclass
Fixed
- Fixed updating split
alloptionshash options with equivalent values - Send
alloptionshash read commands to the master when using replication - Prevent rare undefined variable notice in
wp_cache_init()
v1.10.2 - 2020-09-28
Added
- Overload generic
cache_hitsandcache_missesproperties
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Always return a
ConfigurationfromConfiguration::safelyFrom() - Use invalid configuration option name (not method name) in error log message
Fixed
- Use key caching in multisite environments
- Added suffix to MU and Drop-in stubs to avoid invalid plugin header error when activating
v1.10.1 - 2020-09-16
Fixed
- Fixed an issue with non-persistent, numeric keys in
get_multiple()
v1.10.0 - 2020-09-15
Added
- Show connection class in Query Monitor
- Added
Configuration::parseUrl()helper - Added support for replicated connections
- Show configuration instantiation errors in widget and site health
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Moved
RedisCachePro\Configclass toRedisCachePro\Configuration\Configuration - Renamed
slave_failoverconfiguration option tocluster_failover✊🏿 - Extracted cluster related configuration into
RedisCachePro\Configuration\Concerns\Cluster - Trim log messages to 400 characters in Debug Bar log
- Throw
RedisConfigValueExceptionfor invalid configuration values instead ofRedisConfigException
Fixed
- Create a proper configuration object when cache instantiation fails
- Escape command parameters in Query Monitor extension
- Moved Redis related information from
ObjectCache::info()toPhpRedisObjectCache::info() - Always strip
unix://from PhpRedis host parameter - Ensure
PhpRedisObjectCache::info()->statusreturns a boolean - Prevent invalid configuration values from booting plugin
v1.9.2 - 2020-08-29
Added
- Look for
object-cache-prodirectory in must-use stub
Fixed
- Fixed host scheme in PhpRedis 5.0.2 and older
v1.9.1 - 2020-08-26
Added
- Added
wp_cache_remember()andwp_cache_sear()functions
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Pointed all URLs to the new domain
objectcache.pro - Change log prefix from
rediscachetoobjectcache - Slightly sped up API loading in object cache drop-in
Fixed
- Only throw exception in mu-plugin and drop-in when
WP_DEBUGis true
v1.9.0 - 2020-08-15
Added
- Added
urlconfiguration option - Added
schemeconfiguration option - Added support for
optionsparameter added in PhpRedis 5.3 - Added support for LZ4 compression (PhpRedis 5.3+)
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Support connecting to sockets and using TLS in
wp redis cli - Convert
hostconfiguration option to lowercase - Set
schemewhen included inhostconfiguration option
Fixed
- Fixed getting multiple numeric keys in
ArrayObjectCache - Fixed setting
port,database,maxttlandretry_intervalas numeric string
v1.8.2 - 2020-08-11
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Reverted eager plugin name change in v1.8.1
- Updated plugin URL to new domain to avoid redirects
Fixed
- Don’t flag drop-in as invalid when it’s just outdated
v1.8.1 - 2020-08-11
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Look for API in
object-cache-prodirectories
Fixed
- Fixed an issue with numeric keys and improved error handling in
get_multiple()
v1.8.0 - 2020-07-23
Added
- Added
usernameconfiguration option for Redis 6 ACL support - Added
cacheconfiguration option to set a custom object cache class - Added
connectorconfiguration option to set a custom connector class - Added
flush_networkconfiguration option (defaults toall) - Support flushing individual sites via Network Admin > Sites
- Added
--skip-flush-noticeoption towp redis enablecommand - Added health check to ensure asynchronous flushing is supported
- Added health check to ensure drop-in can be managed
- Added intuitive alias for all WP CLI commands
- Added support for
wp_cache_get_multiple()introduced in WP 5.5
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Renamed “Dropin” to “Drop-in” everywhere
- Support flushing individual sites using
wp redis flush - Hide Redis memory from dashboard widget in multisite environments
- Display notice when license token is not set or invalid, as well as when the license is unpaid or canceled
Fixed
- Explicitly set permissions of
object-cache.phptoFS_CHMOD_FILE
v1.7.3 - 2020-07-10
Fixed
- Support older versions of Query Monitor
- Ignore HTTP errors for license verification requests
- Prevent undefined index notice in
ObjectCache::info() - Prevent call to undefined function in
Licensing::telemetry()
v1.7.2 - 2020-07-09
Added
- Use
wp_opcache_invalidate()on drop-in - Refactored
Diagnosticsto useDiagnosticobjects
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Minor dashboard widget improvements
- Minor Query Monitor extension improvements
- Cleanup plugin options upon deactivation
- Disable FOSS version when activating plugin to avoid confusion
Fixed
- Escape more HTML outputs
- Prevent unnecessary license verification requests
v1.7.1 - 2020-06-08
Fixed
- Always send
setOption()values as string - Fixed Query Monitor panels not showing up for some setups
- Fixed
ArrayObjectCachefallback instantiation inwp_cache_init() - Format all commands parameters using
json_encode()in Query Monitor panel
v1.7.0 - 2020-05-30
Added
- Added support for Query Monitor
- Added context to license issues in the dashboard widget
- Show updates for must-use plugin and object cache drop-in
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Improved formatting of config values in diagnostics
- Don’t highlight
noevictionpolicy when maxTTL is set
Fixed
- Prevent unnecessary plugin update requests
v1.6.0 - 2020-05-11
Added
- Support PHP 7.0 and PhpRedis 3.1.1
- Indicate missing license token in dashboard widget
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Switched to
WP_CLI\Utils\proc_open_compat()forwp redis cli - Ping Redis during object cache initialization to catch
LOADINGerrors
Fixed
- Fixed potential
TypeErrorduringupgrader_process_completeaction
v1.5.1 - 2020-04-29
Fixed
- Fixed global group cache keys
Security
- Prevent XSS injection using cache group names when using Debug Bar
v1.5.0 - 2020-04-22
Added
- Added
Requires PHPandNetworkto plugin header fields - Show supported compression formats in site health
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Initialize plugin after all plugins have been loaded
- Improved the plugin version and basename detection
- Improved muting the
wp redis cliauth warning - Don’t require setting
portwhen connecting to a unix socket - Validate config connection information before connecting
- Always inline widget styles (1015 bytes)
- Always inject plugin details into
update_pluginstransient - Improved obfuscation of sensitive values
- Hide health link from plugin actions in WP <5.2 and multisite networks
- Prevent widget color clashing with color scheme
Fixed
- Fixed detection of multisite networks
- Fixed setting global and non-persistent groups
- Fixed notices in Debug Bar extension
- Fixed
INFOcommand when using cluster
Removed
- Removed
wp_clear_scheduled_hookforrediscache_report
v1.4.0 - 2020-02-27
Added
- Added support for storing
alloptionskey as hash - Added
wp redis clicommand to spawnredis-cliprocess with configuration - Support
WP_REDIS_DIRconstant inmu-plugin.phpstub
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Ensure object cache drop-in is valid before flushing via CLI
- Colorized
wp redis flusherrors
Fixed
- Fixed typo in
RedisConfigMissingException - Fixed logs missing from Debug Bar
- Fixed cloning logic in
PhpRedisObjectCache::storeInMemory() - Inline styles when plugin is symlinked or located outside of web root
v1.3.0 - 2020-02-06
Added
- Added support for asynchronous flushing
- Added support for data compression using LZF and Zstandard
- Added network admin dashboard widget
- Added
wp redis flushcommand with support for--asyncflag - Automatically update drop-in after plugin update
- Show used and max memory in widget, site health and Debug Bar
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Switched to using
ErrorLogLoggerby default - The
ArrayLoggernow extendsErrorLogLoggerand vice versa - The log levels now default to
['emergency', 'alert', 'critical', 'error'] - Changed log level of
ObjectCache::error()fromcriticaltoerror - Introduced
PhpRedisMissingExceptionandPhpRedisOutdatedException - Attempt direct filesystem access when WP filesystem initialization fails
- Renamed internal cache methods in
PhpRedisObjectCacheto be more descriptive - Capture more errors by using
Throwablein some places - Moved Debug Bar HTML into template files
- Support setting
log_levelsconfiguration option tonull
Removed
- Support setting
tokenandpasswordtonull - Removed captured errors from site health information
v1.2.1 - 2020-01-20
Added
- Added health checks link to plugin actions
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Made initialization exceptions more helpful
- Escape HTML in Debug Bar log messages
- Improved pinging cluster nodes
Fixed
- Fixed duplicate prefix when using cluster
- Fixed undefined index notices in
Licensing - Fixed a issue when loading widget styles as must-use plugin
- Resolved minor spelling mistakes
v1.2.0 - 2019-11-29
Added
- Added dashboard widget
- Added support for automatic WordPress updates
- Added diagnostic tests and information to Tools > Site Health
- Added
tokenconfiguration option to set license token
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Disable object cache when deactivating/uninstalling the plugin
Fixed
- Fixed DebugBar integration on case-sensitive filesystems
v1.1.0 - 2019-11-19
Added
- Added log levels
- Added
WP_REDIS_DISABLEDenvironment variable
Changed
- ⚠️ Immutable configuration (D5.14): a configuration from
from(),safelyFrom()orfromEnvironment()ignores the publicset*()methods (each logs a warning inwarnings); usewith(array)orderive(callable)for a changed copy.ObjectCache::suspendAnalytics()replacessetAnalytics(false)at plugin uninstall. A barenew Configurationstays mutable. The setters are removed in the next release. - Use
PhpRedisConnectionfor each master when flushing clusters - Obfuscate all non-
nullpasswords in diagnostics - Allow password to be
nullfor more convenient fallbacks
Fixed
- Prevent timeouts when flushing database
- Use inline styles to clear floats in Debug Bar panels
Security
- Obfuscate password in constants section of diagnostics
v1.0.0 - 2019-11-01
Added
- Initial stable release