Copy link to clipboard
Copied
Is there a way?
I've seen tricks for restarting the application, but I suspect this still kills all active sessions, and we have quite a few going on.
I just have one CFC I need to recompile to get some changes in place, but I don't want to upset the entire apple cart.
Is there a way?
RLS
Copy link to clipboard
Copied
Changing the code may be sufficient.
Copy link to clipboard
Copied
I wish it was; if that were true, I wouldn't have asked this question. Changes I make are not immediately reflected on our busy system. I found a reinit routine that someone wrote that works, but apparently it only works for the person who ran the reinit. Only a cf restart takes care of the whole shebang for everyone. RLS
Copy link to clipboard
Copied
Another obvious suggestion: using cfcompile.
Copy link to clipboard
Copied
You have quite the memory, there, BKBK. I'm sure I ran into this long ago and just simply forgot about it.
Will try! Thanks!
RLS
Copy link to clipboard
Copied
Well, BKBK, it was a good thought, but that still doesn't update the Services dynamically.
RLS
Copy link to clipboard
Copied
What about opening the modified CFC in the browser, as you would a CFM page? It will force ColdFusion to open it with cfcexplorer, and to compile it.
Copy link to clipboard
Copied
I like this idea and will give it a shot next time for sure. It would be so nice to find a way to do that without having to restart CF in Production to make a hotfix.
I will review those settings to see what the impact might be. I wouldn't want to affect long-term efficiency for short-term occasional satisfaction.
BKBK, thank you very much for your help and suggestions!
RLS
Copy link to clipboard
Copied
Yet another suggestion. It might help to uncheck the following settings in the Cache page in the Administrator:
Trusted cache
Cache template in request
Component cache
Copy link to clipboard
Copied
The first one is already not checked, wondering if it should be.
I see that none of them require a restart. It could be that unchecking them, exercising the component, then re-checking them could perhaps cause them to recompile.
Thanks again!
RLS