Quote from: Mark at Feb 09, 2006, 07:59 PM
That actually won’t work because the pageoutput has already been parsed so the API does nothing. (Or at least it did nothing in my tests...)
Hemm.. From my opinion, the API will not cached the script if it’s being called from an uncached snippet.
In the doc parser, it will basically parse the doc twice.
The first one will be to create a page with all uncached snippet calling, then the parser will cached the page, if there is a cache for the page, then it will use that, instead of parsing the system again.
The second one will be to substitute all the uncached snippet into cached snippet symbol and parse the document output again with the uncached snippet being modified into cached snippet. During this time, the register client script will be called on uncached snippet and stored in an array. So after this second parse, I saw that the the array being processed again, and this final page is not being cached anymore. So it means that whatever output being produced by uncached snippet will not be cached, even if we use regClientScript and etc.
It’s jut my though though, and so far I haven’t have any problem yet.