Forum OpenACS Development: Re: blueprint and *-init.tcl files

Collapse
Posted by Gustaf Neumann on
Gustaf, more importantly, if you use ns_eval instead, then all re-loading of procs should happen once when needed, and you should be able to remove that apm_load_any_changed_libraries hook entirely. No additional scheduled sweeper procs should be necessary, ns_eval should take care of it all.

For reloading, you are right. For watching files, where you want to have the interp updated as soon the file is changed on the disk, you need something like a scheduled procedure to compare dates. If the sweeper checks all two seconds, that should be good enough. in any case, only one ns_eval "source ..." is needed.

Collapse
Posted by Andrew Piskorski on
Yes, you're right of course - I forgot about "watching" files, because I never use that feature.