>> GreenByte.info By Nick Tong (quiksilv) | Supported by: TalkWebSolutions.co.uk

Different modes in Fusebox

I was asked today what the different modes in fusebox do. For those that don't know fusebox allows you to have 3 different modes (these can be changed in the fusebox.xml.cfm file).

This information is available in the FAQs on fusebox.org

development-full-load
When set in this mode the core files reparse the XML files only if they have changed and re-builds all the Fusebox memory structures on every request.

Development-circuit-load
This mode does not re-load the fusebox.xml file, does not re-build the Fusebox memory structures but does reload any circuit.xml files required by the current request.

Production
After the first request the core files do not reparse or re-build anything. Obviously production mode is many times faster than either of the development modes. However, once production mode has been set, you must tell your application to reparse the XML to incorporate your changes (and this includes changing from production mode back to development mode).

If you are in production mode and need to reload anything you can pass through a query string:

index.cfm?fusebox.parse=true&fusebox.load=true&fusebox.execute=true &fusebox.password=

By default your password is blank. It's recommended if you moving from production mode you should delete your parsed files.

One of the neat things about fusebox 5.5 is that you should eb able to to do some conditional changing of this mode, I can only see this helping on development and testing servers. I wouldn't suggest deploying this onto a live server.

Fusebox 101


 

Related Blog Entries

Comments
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1.