Hi all,

I¹m brand new to CF7 and persistent CFCs and the like, and I¹m seeking
advice.  Here¹s the lowdown:

I have a content management application that has about the thousand
templates, all badly written spaghetti code, etc., which I¹m in the process
of cleaning up.  I¹ve put together a framework that seems to work well ‹
performance is way up ‹ but that is an interim state.  I¹m now converting
the various modules, pushing the queries into a single application scoped
CFC, etc.  It¹s going well.

My particular problem relates to a page which allows the customer to
configure a page with one of several plugins (for example, an RSS reader or
an open text area or a calendar, etc.), each of which could have its own
configuration.  The current setup is a godawful mess, so I sat down to
actually a write a functional spec and a technical spec, describing each
method, etc. which would be used to generate the page.

The question is this.

If I call for example, this page: http://www.blahblah.com/moduleID/77 ‹ the
page processes, pulls the configuration for each plugin used on that page,
then displays them in the user specified order.  I  originally was thinking
that each time its called, it processes the logic (which exists in a
application scoped page processing CFC).  The I had the bright idea ‹ what
if I created it as an object instead:

<cfoutput>#application.pg.method(parameters)</cfoutput>  -- processes every
time

Vs. 

<cfif Not IsDefined(³application.foo²><cfset
application.foo=#application.pg.method(parameters)</cfoutput></cfif>
<cfoutput>#foo#</cfoutput> -- > creates the object once with parameters and
reuses it

I don¹t even even know if this makes sense.  I¹m thinking in terms of
reducing the load of processing the page every time, because it¹s already
built, but the problem is there could potentially be thousands of these
objects floating around ‹ one for each page for each customer website.

So the more I think about it, the more confused I get.  Thoughts?

More relevant info: I have memory and processor to spare on my server, but
once or twice I¹ve hit the limit of what my instance of coldfusion can
support.  Right now it¹s configured with a min heap of 512 Mb and a max just
shy of 1 Gb.  I don¹t think it can go any higher, and I¹m not sure I¹m
competent to consider going to multiple instances of CF yet.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257130
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to