cfwheels

Coldfusion OutOfMemoryError (CF9/Wheels)

北慕城南 提交于 2019-12-02 08:46:22
问题 I have a function which loops over a query and updates a database row for each item. After about 7000 iterations it's throwing an out of memory error - Java heap space. Is there anything obviously wrong with this code ? <cfloop query=loc.fixItems> <cfset loc.count = loc.count + 1> <cfset var categoryName = loc.fixItems.categoryName> <cfinvoke component="Item" method="updateCode" itemId="#loc.fixItems.itemId#" code="#loc.fixItems.newCode#"/> <!--- Increment counter for category ---> <cfif

Removing index.cfm from url with web config

折月煮酒 提交于 2019-12-01 16:56:22
问题 quick question - Currently my urls look like this: index.cfm/camp/another-test I would like for them to look like this: camp/another-test I'm able to do this fine on apache with my .htaccess but I need to be able to do it on iis7 with the web.config. Here's my rewrite so far: <rewrite> <rules> <rule name="Remove index.cfm" enabled="true"> <match url="^(.*)$" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" negate="true" pattern="^/(assets|files