summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-09 19:59:18 -0800
committerIvan Kohler <ivan@freeside.biz>2016-02-09 19:59:18 -0800
commitd1803f981555834967c8164aa7dba45e96cd6569 (patch)
treebcb292de799f5f15b742148d90c39b52ff1fb657 /htetc
parent52e2e7880c1cb061cac6896613abf17eea5df13f (diff)
store render times in access log, RT#39822
Diffstat (limited to 'htetc')
-rw-r--r--htetc/handler.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 4bb214c..920da3c 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -6,6 +6,7 @@ use strict;
use warnings;
use FS::Mason qw( mason_interps );
use FS::Trace;
+use FS::access_user_log;
use FS::Conf;
$FS::Conf::conf_cache_enabled = 1; # enable FS::Conf caching for performance
@@ -65,6 +66,8 @@ sub handler
#($r) = @_;
my $r = shift;
+ my $start_time = time;
+
FS::Trace->log('protecting fds');
#from rt/bin/webmux.pl(.in)
@@ -164,6 +167,8 @@ sub handler
# );
# }
+ FS::access_user_log->insert_new_path( $r->filename, time-$start_time );
+\
FS::Trace->log('done');
FS::Trace->dumpfile( "%%%FREESIDE_EXPORT%%%/profile/$$.".time,