summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-23 10:21:18 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-23 10:21:18 +1000
commitfcbc21131431725e4cb4cafde0fd907e9c607fa1 (patch)
tree525a2e94e4a67dcd611baed5750fcf2d937a6075 /inc/mod/pages.php
parent39be89ba4945238f6311454283a66930b94577be (diff)
Fixed weird bug with ?/debug/sql trying to allocate a few GB on some instances. Assuming bug with APCu.
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 4346cf94..b240db55 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -2363,7 +2363,13 @@ function mod_debug_apc() {
if ($config['cache']['enabled'] != 'apc')
error('APC is not enabled.');
- $cached_vars = new APCIterator('user', '/^' . $config['cache']['prefix'] . '/');
+ $cache_info = apc_cache_info('user');
+ // $cached_vars = new APCIterator('user', '/^' . $config['cache']['prefix'] . '/');
+ $cached_vars = array();
+ foreach ($cache_info['cache_list'] as $var) {
+ $cached_vars[] = $var;
+ }
+
mod_page(_('Debug: APC'), 'mod/debug/apc.html', array('cached_vars' => $cached_vars));
}