Hello!

I would suggest the following solution:

a) create a file called mod_log.cfm with some properties (f.e. 
attributes.pagename, attributes.parameter, ...)

b) create a database with fields like "sitesection", "hitcount" ...

c) write some sql statements for updating hitcount ... maybe you want to 
write daily statistics ... so you will have to create some more queries 
(or 
let a job do this calculation during times of low traffic).

d) include this file in your index.cfm using cfmodule with the parameters 

of f.e.

<cfmodule template="log/mod_log.cfm" section="main" 
parameter="#url.action#">

Peter

------------
Orginale Nachricht
Von: "Gyrus" <[EMAIL PROTECTED]>
Betreff: logging calls to CFM templates?
Datum/Zeit: Monday, 02. December 2002 12:34:51 

> Is there any way of getting stats on calls to individual CFM files?
> 
> Basically, everything in my apps goes through index.cfm, and obviously 
I'm a
> good little coder and try to be as modular as possible. What I want to 
know
> is which individual templates are processed most often as an application 

is
> used. This information would be really useful when optimising an
> application - you'd know which files to concentrate on in making sure 
code
> is optimal, whitespace is managed properly, etc.
> 
> We're on a shared host, but locally we have CFMX developer edition - and 
I
> guess local info would be better than none. Any ideas?
> 
> Gyrus
> [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> PGP key available
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to