If you are writing custom code for your site, put it in yousite-shceduled-procs.tcl in the private Tcl library, usually web/yoursite/tcl. All files in that directory get loaded on startup. I would put it in its own file if they are unique to your site.