httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik600 <nik...@gmail.com>
Subject is ap_hook_log_transaction the wright place where to write my stats code ?
Date Sun, 07 Dec 2014 00:36:32 GMT
Dear all

i've written a custom module to handle the cache of my CMS system.

Basically this module works in ap_hook_translate_name and decides
(following some custom logic) if the request can be served or not from the
cache.

If yes, the r->uri is changed to be served locally from my cache dir
if no, the r->filename is changed to be server from
a proxy:balancer://cluster config

In the ap_hook_log_transaction i'd like to compute the time of content
generation using:

>float request_duration_sec=(float)(apr_time_now() -
r->request_time)/1000000;

Is this approach correct?

Is there any other hook more appropriate to do that?

Thanks all in advance.

Bye

-- 
/*************/
nik600
http://www.kumbe.it

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message