http://www.yiiframework.com/doc/guide/1.1/en/caching.dynamic
...other HTML content...
<?php if($this->beginCache($id)) { ?>
...fragment content to be cached...
<?php $this->renderDynamic($callback); ?>
...fragment content to be cached...
<?php $this->endCache(); } ?>
...other HTML content...
When the callback in renderDynamic() makes a call to registerScriptFile(), that result is still cached. How can I deal with this?