Generic List empty on recycle/rebuild until page is saved.

Mar 10, 2015 at 2:16 PM

I got some trouble with the lovely Generic List Property. It's empty every time I rebuild or restart my application. However, as soon as I save any affected page the list is populated. I should also say that this seems to be somewhat random.
This problem appeared as we upgraded our project to Episerver 7.5 (7.19). I've been searching and hacking the source code for days without any success.

So I come here for inspiration or possibly a solution to this problem!
Any ideas?

Best regards
Mar 12, 2015 at 11:01 AM
Figured it out!

It seems like the IContentRepository.GetChildren<>(); doesn't want to populate all GenericsList until the page is saved after each restart.
I'm instead going directly on the content reference and it works without any problem! :)