Dynamic Content Caching Where Content Registers Script Files

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?

I’m pretty sure this is a bug, so I created a Github-issue: https://github.com/yiisoft/yii/issues/2384

Let’s continue discussion there.