summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-23 10:41:47 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-23 10:41:47 +1000
commitd234c014f06955974e10a25b1199f22c226e7808 (patch)
tree447750eba6b397ecdf6f43af199a619153332c0a /inc/mod
parent04cfeaf01c5ea830b1caa1a442a864019a02ce39 (diff)
?/debug/apc with cache prefixes
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index b240db55..e47289b4 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -2368,8 +2368,10 @@ function mod_debug_apc() {
// $cached_vars = new APCIterator('user', '/^' . $config['cache']['prefix'] . '/');
$cached_vars = array();
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));
}