Chris Kent wrote:

Spike,

Agreed about changing the FU.cfc.


Cool


I heard from another Farcry developer that they had to increase the memory on the server due to the number of nodes in the site. That was all about large sites. I do not know what memory or number of nodes were involved.


I would be very surprised if the FU stuff had anything to do with the amount of memory that was being used.


Even on a site with 100,000 nodes the FU code is unlikely to take up more than about 10MB of memory.

I'be be even more surprised if any site was using FU with 100,000 nodes than that it was causing memory issues. I would expect you'd run out of useful names for your nodes way before you got to that point.

I am developing a site where I wish to have branches outside of the normal site tree. Currently only the normal site tree is put through you Friendly URLs, so I was looking for alternatives and came up with this.


You can add any mapping you like to the FU mappings. You just need to call the setMapping() method in fu.cfc.


e.g.

If you wanted to add a mapping for:

www.example.com/index.cfm?objectid=E27ECB19-D0B7-4CD6-F9191BE98E0350B3&mode=full

You could do this:

fu.setMapping("www.example.com"&"/go"&"/products/mywidget","www.example.com/index.cfm?objectid=E27ECB19-D0B7-4CD6-F9191BE98E0350B3&mode=full")

I'd expect you'd be passing variables rather than the string literals I've used above, but hopefully you get the idea.

Also, I think it should be possible to allow for FU's for any type of dynamic content as well using this method.

Not sure what you mean.

Can you expand on that a bit?


I do not see this as a replacement to your servlet method, just another method to acheive a similar result.

Yes, I can appreciate that.

It's always good to have new ideas floating around on the list.

I just wanted to make sure you knew that you can already do what you're asking for with no little or no code changes.


Chris.

Spike wrote:


You could alternatively change a bit of code in FU.cfc so that it only gets the mappings for the domains that are configured for the current application.


What problems do you see on very large sites?

Spike





--

--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to