From e80160f18c59c3d76e5825b46ee6d6c48d9b582e Mon Sep 17 00:00:00 2001 From: Zankaria Date: Mon, 25 Nov 2024 23:40:38 +0100 Subject: [PATCH] mod.php, pages.php: remove apc debug --- inc/mod/pages.php | 22 ---------------------- mod.php | 1 - 2 files changed, 23 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 16e3e354..7b64663c 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -3664,25 +3664,3 @@ function mod_debug_sql(Context $ctx) { mod_page(_('Debug: SQL'), 'mod/debug/sql.html', $args); } - -function mod_debug_apc() { - global $config; - - if (!hasPermission($config['mod']['debug_apc'])) - error($config['error']['noaccess']); - - if ($config['cache']['enabled'] != 'apc') - error('APC is not enabled.'); - - $cache_info = apc_cache_info('user'); - - // $cached_vars = new APCIterator('user', '/^' . $config['cache']['prefix'] . '/'); - $cached_vars = []; - foreach ($cache_info['cache_list'] as $var) { - if ($config['cache']['prefix'] != '' && strpos(isset($var['key']) ? $var['key'] : $var['info'], $config['cache']['prefix']) !== 0) - continue; - $cached_vars[] = $var; - } - - mod_page(_('Debug: APC'), 'mod/debug/apc.html', array('cached_vars' => $cached_vars)); -} diff --git a/mod.php b/mod.php index ef336747..bb260251 100644 --- a/mod.php +++ b/mod.php @@ -110,7 +110,6 @@ $pages = [ // these pages aren't listed in the dashboard without $config['debug'] '/debug/antispam' => 'debug_antispam', '/debug/recent' => 'debug_recent_posts', - '/debug/apc' => 'debug_apc', '/debug/sql' => 'secure_POST debug_sql', // This should always be at the end: