fragment cache doesn't record included js

hi,

I’m trying to fragment cache a piece of code (abc) which has a line containing registerCoreScript,

however it doesn’t get recorded by the cache if some other piece of code (xyz) already included the same core script.

This is very annoying because when I visit a different page which doesn’t have code xyz, code abc is left without the core script.

Is this a feature or a bug? What can I do to make sure it does get recorded into the cache, no matter whether the script was registered before or not?

thank you…

This is a major problem, not only with cache. Also sometime even renderPartial breaks the core scripts.

In such unfortunate case you should include the core script manually when needed, in the worst case for each page.

that’s what I thought

thanks for the input,

I’ll make sure relevant stuff gets registered right before the beginCache