We have several thousand directories with pages that are accessed up to half a million times every day. At the end of each page hit, we insert some of the CGI variables into the database. If the form was submitted or a search was performed, we insert some of this information into another database. No information should be returned from each of these database inserts. These inserts occur at the end of page processing.
I read that after the start-up stream starts, page processing continues and does not wait for an answer. It seems that this will speed up the page because it does not wait for requests on the pages that will be launched. Is it correct?
Is there any use for inserting these database inserts into my own thread?
<cffunction
name="OnRequest"
access="public"
returntype="void"
output="true"
hint="Fires after pre page processing is complete.">
<cfargument name="RequestedContent" type="string" required="true" />
<cfinclude template="#ARGUMENTS.RequestedContent#" />
<cfscript>
thread
action="run"
name="Tracking" {
include "track1.cfm";
include "track2.cfm";
}
</cfscript>
<cfreturn />
</cffunction>
source
share