Skip to content
Permalink
Browse files

Add the same kind of performance data for Shortcuts, as AssetProxy ma…

…cros.
  • Loading branch information...
perlDreamer committed Sep 11, 2012
1 parent b37f9d5 commit 2d83f3c0d1562229347b8c7d21f21765db413d94
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/WebGUI/Asset/Shortcut.pm
@@ -942,7 +942,10 @@ sub view {
# Make sure the www_view method won't be skipped b/c the asset is cached.
$shortcut->purgeCache();

$content = $shortcut->view;
my $t = ($self->session->log->canShowPerformanceIndicators()) ? [Time::HiRes::gettimeofday()] : undef;
$content = $shortcut->view;
$content .= "Shortcut:" . Time::HiRes::tv_interval($t)
if $t;

# Make sure the overrides are not cached by the original asset.
$shortcut->purgeCache();

0 comments on commit 2d83f3c

Please sign in to comment.
You can’t perform that action at this time.