This content has been marked as final. Show 4 replies
they are not cached. it is just that onApplicationStart() method is only
executed when the application starts the first time after server
restart/application timeout. so no matter how many time you overwrite
your Aplication.cfc file with a new version, the onApplicationStart
method will not execute until you restart the server or call the method
instead of restarting cf server, create a .cfm file with this in it:
upload the file to your server and call it up in your browser.
***delete the file from server after you are done with it!!!***
ok updates on the situation.. I guess it's not a problem with the Applicaion.CFC I think It's my templates, they are cached with the invalid urls and settings.. now my requirement it to clear that cache without getting into admin panel. is there anyway I can do that..?
ok Azadi, may be I was too exited and didn't see your post b4 I post my comments.. your solution worked out.. nice.. but for some reason your code didn't work as it is.. it was complaining that onApplicationStart(); is undefined, so I did a small tweak to your code..
yes, i just realized that the code i posted is from onRequestStart() in
my Application.cfc (sans the <cfdump> part), and that's why it works as
is without creating an object...