Shaun Mccran

My digital playground

30
S
E
P
2009

A simple Fusebox reset function

A simple Fusebox reset function

I am always forgetting the application URL for resetting fusebox frameworks, so instead of having to type out the entire fuseaction url, and appending the load variables, and the parsing variables you can create a fuse action for it.

view plain print about
1<cffunction name="rebuild">
2        <cfargument name="myFusebox" />
3        <cfargument name="event" />
4
5        <cfset xfa.reinit = "index.cfm?" & FUSEBOX_PARAMETERS.fuseactionVariable & "=" & "&fusebox.loadclean=true&fusebox.parseall=false&fusebox.execute=true&fusebox.password=" & FUSEBOX_PARAMETERS.password>
6        <cflocation url="#xfa.reinit#" addtoken="false">
7    </cffunction>

The code above will build the URL using the fuse action variable (IE 'action=' or whatever you have specified). It also uses the fusebox password set in your Application.cfc.

There may be a small security risk involved with this, so don't use an obvious name for the function. Also they would need your fusebox password.

Even then thought the only potential issue I can see with this is that someone may empty your framework cache and rebuild your application. Which isn't all that bad?

TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Ryan's Gravatar Nice tip, but there is also the Fusebox Reload plugin for firefox: https://addons.mozilla.org/en-US/firefox/addon/666...
# Posted By Ryan | 30/09/2009 15:17
Shaun McCran's Gravatar Excellent! I didn't realise that there was a FireFox plugin for this, I will have to give it a try.
# Posted By Shaun McCran | 30/09/2009 22:22
constructioncareeraustin.net's Gravatar Before you decide to make any kind of decision associated with your career you need to assess your self first. Since the inherent capability, skills as well as values tend to be most helpful items to make profession choices. You make use of self checks tools quite simply we may say work test for any self evaluation test. A profession test allows you to making decisions for the career. Additionally, it creates a suitable list associated with occupation as well as gathers correct information for the career.
http://www.constructioncareeraustin.net/
# Posted By constructioncareeraustin.net | 10/11/2015 20:18
eyecandyentertainment.net's Gravatar Lots of people will not really allow their own children in order to toil hard within their higher training programs as well as deny all of them recognition. It will likely be wrong to achieve that as the parent. A good thing you can perform is to arrange for a great graduation ceremony for the child.
http://www.eyecandyentertainment.net/
# Posted By eyecandyentertainment.net | 10/11/2015 20:21
fashion trade fairs's Gravatar When you are shopping for the perfect piece of jewellery, either for yourself or someone special, you basically have two choices if you want to shop at a jewellery store.  You can either opt to shop at a big chain store or you can shop at an independent   <a href="http://www.fashiontradefairs.com/">fashion... trade fairs</a>
# Posted By fashion trade fairs | 11/11/2015 02:36
fittnes style's Gravatar Hats have emerged as a trendy fashion accessory across the globe today. Apart from adding to your fashionable look, it also protects your hair against high temperature. In fact, hats wonderfully blend fashion and comfort.   <a href="http://www.fittnesstyle.com/">fittnes style</a>
# Posted By fittnes style | 11/11/2015 02:37
Sarah Miller's Gravatar Thanks Shaun for sharing this simple Fusebox reset function. These functions are always required and people face issues when they are unable to find the best function that can help them to solve their problem. Here http://www.bigbangdissertation.com/ can also be the best is the students are really in need of the best content.
# Posted By Sarah Miller | 18/12/2015 11:21
Back to top