From acab5ac3992cb5978b0e8cbf7048165460886f72 Mon Sep 17 00:00:00 2001 From: Kristian Klausen Date: Fri, 15 Oct 2021 19:51:06 +0200 Subject: [PATCH] fix(PHP): Noop update of metrics It is causing very high CPU usage on aur.archlinux.org so nooping until the issue can be fixed. --- 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 42d0bf06..a31f4294 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 ($is_cached) +if (false && $is_cached) register_shutdown_function('update_metrics'); if (config_get_bool('options', 'enable-maintenance') && (empty($tokens[1]) || ($tokens[1] != "css" && $tokens[1] != "images"))) {