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.
This commit is contained in:
Kristian Klausen 2021-10-15 19:51:06 +02:00
parent 901b24b013
commit acab5ac399
No known key found for this signature in database
GPG key ID: E2BE346E410366C3

View file

@ -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"))) {