Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
tSpark #1
CFC caching in the server scope
I'm trying to save some overhead by caching a CFC in the server scope instead
of calling it on every page. This CFC has several methods that I use
throughout the page display. I'm running into what I think is a race issue,
but looking for advice.
When I run it on my test server everything works great. As soon as I move it
to production, it breaks intermittently. I get query errors and errors
indicating that variables are not found. The errors are on various lines, and
not always in the same place.
Since the CFC does not have any get/set methods, it should not have a problem
with state. To me, it appears as if when the methods are being called by
multiple users, the values are somehow crossing and interfering.
Why? Shouldn't all the queries be unique to the request? Would I be better
off just putting all these methods in an include file?
I also tried the application scope and got the same results. No problem with
the request or session scopes, but that makes sense since it is unique to the
user - but that means the caching is only per user. I'd like it to be server
or application-wide.
I'm on MX6.1 (w/updater) and Windows 2000.
tSpark Guest
-
Proxy Server and caching
We have a Cold Fusion Web Site on our Windows 2000 Server that we host. We have some clients that have a proxy server that have to disable caching... -
Server caching pages
I'm running CFMX 6.1 on win2003/IIS6. I'm having a lot of trouble at the moment with the server caching the pages when not told to. Trusted cache is... -
Initialize Server Scope Variables
We have a mix of ColdFusion servers running in a production or development mode. Some applications we have developed will send e-mails when running... -
Caching Server
One of our applications serves up GB upon GB of flash content. Some customers have bandwidth issues and would like to be able to cache this... -
Server side caching system
I was wondering what the best method would be for server side caching of data from an SQL database for rather busy sites, I have heard that PHP's...



Reply With Quote

