Re: [cfwheels] Force Application Reload

266 views
Skip to first unread message

Per Djurner

unread,
Aug 16, 2009, 3:17:12 AM8/16/09
to cfwh...@googlegroups.com
Adding reload=true to the URL will reload the framework.
What kind of application settings do you need to reload though?
It's probably better to store them in a separate application variable and just clear that one.

On Sun, Aug 16, 2009 at 12:01 AM, Marco Gil <marc...@cogeco.ca> wrote:

I can’t recall the answer to this and couldn’t find it on the CFWheels website anywhere.  I have a template that gets executed at each and every year-end.  At the end of this template/script, I want to add a line of code that reloads the application since some of my application settings will change as a result of the script being run.

 

Is there a specific line of code I can execute that will do this so that anyone visiting my site will have the new settings?  Thanks

 

Marco




PJStyles

unread,
Aug 18, 2009, 7:31:00 AM8/18/09
to ColdFusion on Wheels
Thanks Per... However, I'm looking for a line of code I can add rather
than adding a ?reload=true to the URL. The application settings I'm
altering with these year-end scrips have to do with the current year
we are in. For example, application.currentyear =
settings.currentyear Where settings is a query I run after updating
the database with some new updated values at year-end. I would like
to execute a line of code that will reload the application so that
visitors who now visit the website get the new updated application
values as well as myself.

Any suggestions? CFWheels automatically loads up the display page
based on the controller name and action, so not sure how I can go
about adding a ?reload=true and ensure that the new values for that
application variable are present for all people on the website once
that change/update is processed.

Thanks again...

Marco

On Aug 16, 3:17 am, Per Djurner <per.djur...@gmail.com> wrote:
> Adding reload=true to the URL will reload the framework.What kind of
> > Marco- Hide quoted text -
>
> - Show quoted text -

Chris Peters

unread,
Aug 18, 2009, 9:34:55 AM8/18/09
to cfwh...@googlegroups.com
The PluginManager plugin deals with this by using <cfhttp> to call the application with ?reload=true on the end. That should be all that you need, perhaps in a scheduled task or at the end of your script that changes the values. Hope that helps.

Per Djurner

unread,
Aug 18, 2009, 10:06:45 AM8/18/09
to cfwh...@googlegroups.com
By the way, I think you have asked this twice now (unless I misunderstood and this is a new problem).

Here are those threads:

PJStyles

unread,
Aug 19, 2009, 8:01:41 AM8/19/09
to ColdFusion on Wheels
My mistake Per. I thought I had posted but when I scanned all my old
emails in my inbox, I couldn't find it. Thanks for posting these
links, very helpful!

Marco

On Aug 18, 10:06 am, Per Djurner <per.djur...@gmail.com> wrote:
> By the way, I think you have asked this twice now (unless I misunderstood
> and this is a new problem).
> Here are those threads:http://groups.google.com/group/cfwheels/browse_frm/thread/74c8c927273...http://groups.google.com/group/cfwheels/browse_frm/thread/f367b0cab24...
>
> / Per
>
> On Tue, Aug 18, 2009 at 3:34 PM, Chris Peters
> <ch...@clearcrystalmedia.com>wrote:
>
>
>
> > The PluginManager plugin deals with this by using <cfhttp> to call the
> > application with ?reload=true on the end. That should be all that you need,
> > perhaps in a scheduled task or at the end of your script that changes the
> > values. Hope that helps.
>
> >> > - Show quoted text -- Hide quoted text -

Per Djurner

unread,
Aug 19, 2009, 8:24:13 AM8/19/09
to cfwh...@googlegroups.com
No problem.
It took me a while to find it too, the search function on the Google group is really bad.
Reply all
Reply to author
Forward
0 new messages