';
$ts = strftime( '%H:%M:%S %D', $item['timestamp'] );
echo "
$ts
";
echo "
$item[operation]
";
if ($item['operation'] == 'invalidate_products_cache' || $item['operation'] == 'invalidate_categories_cache') {
$time = strftime('%c', $item['time']);
echo <<$time
HTML;
}
if ($item['operation'] == 'get') {
echo <<$item[name]
HTML;
render_nested( 'result', $item['result'] );
}
if ($item['operation'] == 'set') {
echo <<$item[name]
HTML;
render_nested('value', $item['value']);
}
if (in_array( $item['operation'], array( 'get_from_categories_cache', 'get_from_products_cache', 'get_from_catalog_cache' ) ) ) {
$key = @$item['name'];
echo <<$key
HTML;
render_nested('result', $item['result']);
}
if ($item['operation'] == 'get_from_catalog_cache') {
$valid_from = @$item['valid_from'];
echo <<$valid_from
HTML;
}
if ($item['operation'] == 'reg cache check') {
render_nested('stats', $item['stats']);
}
if ($item['operation'] == 'is_trusted') {
render_nested('self', $item);
}
echo '';
}
echo '' . '