forked from leftypol/leftypol
mod.php, pages.php: remove apc debug
This commit is contained in:
parent
ee9de3fe50
commit
e80160f18c
2 changed files with 0 additions and 23 deletions
|
@ -3664,25 +3664,3 @@ function mod_debug_sql(Context $ctx) {
|
||||||
|
|
||||||
mod_page(_('Debug: SQL'), 'mod/debug/sql.html', $args);
|
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));
|
|
||||||
}
|
|
||||||
|
|
1
mod.php
1
mod.php
|
@ -110,7 +110,6 @@ $pages = [
|
||||||
// these pages aren't listed in the dashboard without $config['debug']
|
// these pages aren't listed in the dashboard without $config['debug']
|
||||||
'/debug/antispam' => 'debug_antispam',
|
'/debug/antispam' => 'debug_antispam',
|
||||||
'/debug/recent' => 'debug_recent_posts',
|
'/debug/recent' => 'debug_recent_posts',
|
||||||
'/debug/apc' => 'debug_apc',
|
|
||||||
'/debug/sql' => 'secure_POST debug_sql',
|
'/debug/sql' => 'secure_POST debug_sql',
|
||||||
|
|
||||||
// This should always be at the end:
|
// This should always be at the end:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue