Changeset 2956

Author: gratzc
Date: about 1 month ago (2010/02/07 13:03)
Updated EventCachingLoad test to make it simple to run.  Just hit runTest.cfm from your browser.

Affected files

coldbox/trunk/testing/StandAloneTests/EventCachingLoad/config/coldbox.xml.cfm

29552956
113
		<InfoPanel 		show="false" expanded="true" />
113
		<InfoPanel 		show="false" expanded="true" />
114
		<CachePanel 	show="false" expanded="false" />
114
		<CachePanel 	show="false" expanded="false" />
115
		<RCPanel		show="false" expanded="false" />
115
		<RCPanel		show="false" expanded="false" />
116
		<ModulesPanel	show="false" expanded="false" />
116
	</DebuggerSettings>
117
	</DebuggerSettings>
117
118
118
	<!--Optional,if blank it will use the CFMX administrator settings.-->
119
	<!--Optional,if blank it will use the CFMX administrator settings.-->

coldbox/trunk/testing/StandAloneTests/EventCachingLoad/handlers/general.cfc

29552956
36
		<cfset Event.setView("slowEvent")>
36
		<cfset Event.setView("slowEvent")>
37
	</cffunction>
37
	</cffunction>
38
38
39
	<cffunction name="ClearEvents" returntype="void" output="false" hint="I run the clear all events coldbox setting to get events out of cache">
40
		<cfargument name="event" required="true" type="any">
41
		<cfscript>
42
			var rc = event.getCollection();
43
			//Clear all events from cache
44
			getColdBoxOCM().clearAllEvents();
45
46
			event.renderData(type="Plain",data="Events have been cleared from cache");
47
		</cfscript>
48
	</cffunction>
49
39
</cfcomponent>
50
</cfcomponent>