Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

extension does not install on server context

  • Loading branch information...
commit d1bf011f3ab4fa995dd4b726c459e203cc168adf 1 parent 035e71b
@andreacfm andreacfm authored
Showing with 17 additions and 15 deletions.
  1. +3 −3 cachetests/stress/1.cfm
  2. +14 −12 extension/Install.cfc
View
6 cachetests/stress/1.cfm
@@ -1,12 +1,12 @@
-<cfsetting requesttimeout="180">
+<cfsetting requesttimeout="300">
<cfset total = 0>
<cfloop from="1" to="10" index="j">
<cfset start = gettickcount()>
- <cfloop from="1" to="1000" index="i">
+ <cfloop from="1" to="50000" index="i">
<cfcache action="put" id="a#i#" value="#i#">
- <cfcache action="get" id="a#i#" name="v">
+ <!---<cfcache action="get" id="a#i#" name="v">--->
</cfloop>
<cfset end = gettickcount()>
View
26 extension/Install.cfc
@@ -31,10 +31,12 @@
destination="#getContextPath()#/lib/#i#">
</cfloop>
- <cffile
- action="copy"
- source="#path#driver/#variables.driver#"
- destination="#getContextPath()#/context/admin/cdriver/#variables.driver#">
+ <cfadmin
+ action="updateContext"
+ type="#request.adminType#"
+ password="#session["password"&request.adminType]#"
+ source="#path#driver/#variables.driver#"
+ destination="admin/cdriver/#variables.driver#">
<cfreturn '#variables.name# is now successfully installed'>
@@ -56,16 +58,16 @@
<cfargument name="config" type="struct">
<cfloop list="#variables.jars#" index="i">
- <cfadmin
- action="removeJar"
- type="#request.adminType#"
- password="#session["password"&request.adminType]#"
- jar="#path#lib/#i#">
+ <cffile
+ action="delete"
+ file="#getContextPath()#/lib/#i#">
</cfloop>
- <cffile
- action="delete"
- file="#getContextPath()#/context/admin/cdriver/#variables.driver#">
+ <cfadmin
+ action="removeContext"
+ type="#request.adminType#"
+ password="#session["password"&request.adminType]#"
+ destination="admin/cdriver/#variables.driver#">
<cfreturn '#variables.name# is now successfully removed'>
Please sign in to comment.
Something went wrong with that request. Please try again.