Doesn't work on child action of a child Action

Feb 18, 2012 at 10:05 AM
Edited Feb 18, 2012 at 10:05 AM

It works only if I exclude a child action from parent cache and the parent is a not child action. If I call a child action from a child action, it doesn't work.

Feb 21, 2012 at 9:36 AM

Yes, there is code in the DonutHoleFiller class to only try and replace donut holes in non-child actions. This is for performance reasons - the vast majority of users will not have nested child actions.


Feel free to modify the source for your own use but bear in mind that rendering child actions is not free and having nested child actions may not be the best approach if you can do it another way.