mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Minor improvements (#904)
This commit is contained in:
parent
119cf935a2
commit
236ae639ed
1 changed files with 4 additions and 4 deletions
|
@ -125,17 +125,17 @@ class Dev
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($CACHES->obj as $cache_name => $cache_obj) {
|
foreach ($CACHES->obj as $cache_name => $cache_obj) {
|
||||||
if (!empty($cache_obj->db)) {
|
if (!empty($cache_obj->db->dbg)) {
|
||||||
$log .= self::get_sql_log_html($cache_obj->db, "cache: $cache_name [{$cache_obj->db->engine}]");
|
$log .= self::get_sql_log_html($cache_obj->db, "cache: $cache_name [{$cache_obj->db->engine}]");
|
||||||
} elseif (!empty($cache_obj->engine)) {
|
} elseif (!empty($cache_obj->dbg)) {
|
||||||
$log .= self::get_sql_log_html($cache_obj, "cache: $cache_name [{$cache_obj->engine}]");
|
$log .= self::get_sql_log_html($cache_obj, "cache: $cache_name [{$cache_obj->engine}]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($datastore->db->dbg)) {
|
if (!empty($datastore->db->dbg)) {
|
||||||
$log .= self::get_sql_log_html($datastore->db, 'cache: datastore [' . $datastore->engine . ']');
|
$log .= self::get_sql_log_html($datastore->db, "cache: datastore [{$datastore->db->engine}]");
|
||||||
} elseif (!empty($datastore->dbg)) {
|
} elseif (!empty($datastore->dbg)) {
|
||||||
$log .= self::get_sql_log_html($datastore, 'cache: datastore [' . $datastore->engine . ']');
|
$log .= self::get_sql_log_html($datastore, "cache: datastore [{$datastore->engine}]");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $log;
|
return $log;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue