From 28b1d20fb1be32a9bbd2c0594cabe371fcd17de9 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Fri, 15 Oct 2021 13:39:00 -0700 Subject: [PATCH] Revert "fix(PHP): Noop update of metrics" This reverts commit acab5ac3992cb5978b0e8cbf7048165460886f72. --- web/html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/html/index.php b/web/html/index.php index a31f4294..42d0bf06 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -13,7 +13,7 @@ $query_string = $_SERVER['QUERY_STRING']; // If no options.cache is configured, we no-op metric storage operations. $is_cached = defined('EXTENSION_LOADED_APC') || defined('EXTENSION_LOADED_MEMCACHE'); -if (false && $is_cached) +if ($is_cached) register_shutdown_function('update_metrics'); if (config_get_bool('options', 'enable-maintenance') && (empty($tokens[1]) || ($tokens[1] != "css" && $tokens[1] != "images"))) {