The adp_parse_ad_conn_file calls
[template::adp_parse [file root [ad_conn file]] {}]
which also results in errors when PerformanceMode is switched on. It is skipping the index.vuh and results in a not found error when calling the same url repeatedly. This is different from the error I saw first where PerformanceMode would skip the index.vuh but call the same template afterwards.
Executing the snippet from within ad_return_exception_template as suggested by Don works:
ns_return 200 text/html
[template::adp_parse [template::util::url_to_file $template_path
[ad_conn file]] ""]
(this is without the query parameter passing stuff).
In the thread that this originates from we were wondering if there are efficiency issues with the code above, e.g. does it result in more string copying than there would be normally when calling an adp/tcl pair directly?
Or could that become the recommended approach for the problem: how to dynamically decide which tcl/adp pair to serve from an index.vuh?