Forum OpenACS Q&A: Adptag procs are not beeing called on every request
Basically, the thing works perfectly the first few times after restarting the server, but after having reloaded the same page five times or so, the tag is being recognized (that is, removed from the adp script) but no being processed (the proc which is supposed to be called, well, isn't called).
I've debugged this by placing as "ds_comment" in the beginning fof all the procs being created by "template_tag" -- and it seems that none of the template_tag_* procs are being called (that is, the procs for handling such tags as <master> <property>...).
In any case, this seems magical to me, since everything by my own proc isn't suffering from not being called. Is the rp caching stuff, which means that I *must* use "template::adp_append_code" to make everything work -- or am I just misunderstanding something?
If you touch the source .adp it will recompile it again so if you are working on the tag thats probably the easiest way to ensure it gets invoked when you change it.
The best place to start with what is admittedly a pretty dark art is to look at the existing tags, or turn on developer support which will include links in the footer to the compiled version of each template (the little "c" link).
I realized after writing my own question that I needed to add all the code in the tag proc, through "template::adp_append_code" -- and that did the trick. But thank you for explaining why it actually didn't work!