/wheels/events/onrequestend.cfm

http://cfwheels.googlecode.com/ · ColdFusion · 21 lines · 20 code · 1 blank · 0 comment · 5 complexity · 5c1e3e097a28182c6256871818d4daf9 MD5 · raw file

  1. <cffunction name="onRequestEnd" returntype="void" access="public" output="true">
  2. <cfargument name="targetpage" type="any" required="true">
  3. <cfscript>
  4. $simpleLock(execute="$runOnRequestEnd", executeArgs=arguments, name="wheelsReloadLock", type="readOnly", timeout=180);
  5. if (application.wheels.showDebugInformation && StructKeyExists(request.wheels, "showDebugInformation") && request.wheels.showDebugInformation)
  6. {
  7. $includeAndOutput(template="wheels/events/onrequestend/debug.cfm");
  8. }
  9. </cfscript>
  10. </cffunction>
  11. <cffunction name="$runOnRequestEnd" returntype="void" access="public" output="false">
  12. <cfargument name="targetpage" type="any" required="true">
  13. <cfscript>
  14. if (application.wheels.showDebugInformation)
  15. $debugPoint("requestEnd");
  16. $include(template="#application.wheels.eventPath#/onrequestend.cfm");
  17. if (application.wheels.showDebugInformation)
  18. $debugPoint("requestEnd,total");
  19. </cfscript>
  20. </cffunction>