Skip to content

Commit

Permalink
handle long friendly urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair McKenzie committed Mar 17, 2017
1 parent 9d2a0c1 commit 6d6f0d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/types/farFU.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@
<cfset var stReturnFU = {} />

<cfif not arguments.bIgnoreCache>
<cfset stReturnFU = application.fc.lib.objectbroker.GetFromObjectBroker("us-" & lcase(arguments.friendlyURL),"fuLookup") />
<cfset stReturnFU = application.fc.lib.objectbroker.GetFromObjectBroker("us-" & hash(lcase(arguments.friendlyURL)),"fuLookup") />
</cfif>

<cfif structIsEmpty(stReturnFU)>
Expand Down Expand Up @@ -1717,15 +1717,15 @@
<cfargument name="friendlyURL" type="string" required="true" />
<cfargument name="data" type="struct" required="true" />

<cfset application.fc.lib.objectBroker.AddToObjectBroker(stObj=arguments.data, typename="fuLookup", key="us-" & lcase(arguments.friendlyURL)) />
<cfset application.fc.lib.objectBroker.AddToObjectBroker(stObj=arguments.data, typename="fuLookup", key="us-" & hash(lcase(arguments.friendlyURL))) />

<cfreturn duplicate(arguments.data) />
</cffunction>

<cffunction name="uncacheURLStructByURL" access="public" output="false" returntype="void">
<cfargument name="friendlyURL" type="string" required="true" />

<cfreturn application.fc.lib.objectBroker.RemoveFromObjectBroker(lObjectIDs="us-" & lcase(arguments.friendlyURL),typename="fuLookup") />
<cfreturn application.fc.lib.objectBroker.RemoveFromObjectBroker(lObjectIDs="us-" & hash(lcase(arguments.friendlyURL)), typename="fuLookup") />
</cffunction>

</cfcomponent>

0 comments on commit 6d6f0d3

Please sign in to comment.