From 931cccbd0869c12cc063c611532abad8d8e31a3b Mon Sep 17 00:00:00 2001 From: Jacob Dunn <88040916+jacobd91@users.noreply.github.com> Date: Tue, 3 Dec 2024 11:31:09 -0500 Subject: [PATCH] Fixed undefined variable (#1004) --- ObjectCache_WpObjectCache_Regular.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ObjectCache_WpObjectCache_Regular.php b/ObjectCache_WpObjectCache_Regular.php index 557d8899c..a9d9aceee 100644 --- a/ObjectCache_WpObjectCache_Regular.php +++ b/ObjectCache_WpObjectCache_Regular.php @@ -643,6 +643,8 @@ public function flush_runtime() { $this->cache = array(); if ( $this->_debug || $this->stats_enabled ) { + $time = Util_Debug::microtime(); + $this->cache_flushes++; $this->time_total += $time; @@ -655,7 +657,7 @@ public function flush_runtime() { '', '', 0, - 0, + (int) ( $time * 1000000 ), ) ); }