summaryrefslogtreecommitdiffstats
path: root/classes/class_debug.php
diff options
context:
space:
mode:
authorWhat.CD <committer@what.cd>2011-05-12 10:24:03 +0000
committerWhat.CD <committer@what.cd>2011-05-12 10:24:03 +0000
commitdcaa536e587ad334b55466a8d8fe412a2c36d7b5 (patch)
tree68c4262e896d2c1db05ab500f5dc56987f2ebea3 /classes/class_debug.php
parent3b035083134455375b6d9c4ca6287ac396560db8 (diff)
downloadGazelle-dcaa536e587ad334b55466a8d8fe412a2c36d7b5.zip
Gazelle-dcaa536e587ad334b55466a8d8fe412a2c36d7b5.tar.gz
Gazelle-dcaa536e587ad334b55466a8d8fe412a2c36d7b5.tar.bz2
Update sphinxapi for v2
Allow indexing by column 0 in ->to_array() Only need numeric indices in 'ip_bans' key Cache keys were completely broken on the debug pages Add bbcode missing functions to staffpms Add border to improve layout of torrent pages with postmod Fix a bug where users could download anyone's snatch/upload/seedlist regardless of paranoia settings Don't escape thread titles before caching Better BBCode URL matching Fix user search by tracker IP for ocelot data Fix bug where the same thread would show up twice in the announcements forum Update tables before sending invite email to prevent sending multiple invites
Diffstat (limited to 'classes/class_debug.php')
-rw-r--r--classes/class_debug.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/classes/class_debug.php b/classes/class_debug.php
index 359d329..d8a9bb2 100644
--- a/classes/class_debug.php
+++ b/classes/class_debug.php
@@ -212,11 +212,6 @@ class DEBUG {
return get_included_files();
}
- public function get_cache() {
- global $Cache;
- return $Cache->CacheHits;
- }
-
public function get_cache_time() {
global $Cache;
return $Cache->Time;
@@ -360,18 +355,17 @@ class DEBUG {
<?
}
- public function cache_table($CacheData=false) {
+ public function cache_table($CacheKeys=false) {
global $Cache;
$Header = 'Cache Keys';
- $CacheKeys = $this->get_cache_keys();
- if (!is_array($CacheData)) {
- $CacheData = $this->get_cache();
+ if (!is_array($CacheKeys)) {
+ $CacheKeys = $this->get_cache_keys();
$Header .= ' ('.number_format($this->get_cache_time(), 5).' ms)';
}
- if (empty($CacheData)) {
+ if (empty($CacheKeys)) {
return;
}
- $Header = ' '.number_format(count($CacheData)).' '.$Header.':';
+ $Header = ' '.number_format(count($CacheKeys)).' '.$Header.':';
?>
<table width="100%">
@@ -386,7 +380,7 @@ class DEBUG {
<a href="#" onclick="$('#debug_cache_<?=$Key?>').toggle(); return false;"><?=display_str($Key)?></a>
</td>
<td align="left">
- <pre id="debug_cache_<?=$Key?>" class="hidden"><?=display_str(print_r($Cache->get_value($Key), true))?></pre>
+ <pre id="debug_cache_<?=$Key?>" class="hidden"><?=display_str(print_r($Cache->get_value($Key, true), true))?></pre>
</td>
</tr>
<? } ?>