Check your weblogs, they usually display the URL details.. So you could use
webtrends or something to parse the log files based on the url strings...
Thus which templates were actually being executed..

HTH

Mikey

-----Original Message-----
From: Gyrus [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 2, 2002 12:43
To: CF-Talk
Subject: Re: logging calls to CFM templates?


No, you misunderstood the question...

It would be pretty easy to build something like this that basically logged
which "sections" and "pages" are used most often - it would be just a
homegrown site stats thing.

What I'm actually interested in is what individual CFM templates are used
most often. So maybe there's a custom tag or include that's used in many
different sections and pages.

Obviously building something to log every single CFINCLUDE and CFMODULE call
would create an insane overhead! I just thought maybe CF server logged this
info somewhere as a matter of course, and the info was squirreled away
somewhere - maybe not! :-(

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

----- Original Message -----
From: "Peter Mayer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 12:09 PM
Subject: Re: logging calls to CFM templates?


> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to