-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Once again title may be a bit off, but this is the problem I'm having:
At the moment wire('modules')->LanguageSupport->otherLanguagePageIDs contains up-to-date list of additional languages and count(wire('languages')) returns up-to-date number of all available languages.. yet wire('languages'), when iterated, does not contain languages added during that request.
It's not exactly clear to me why this is happening and whether this is actually something that Countable and IteratorAggregate do differently (?), but it's a bit confusing to say the least.
I'd be happy if there was a clean way to "uncache" languages iterator (at least I haven't been able to find such a method yet), but it would seem even more sensible if new languages becoming instantly usable, i.e. iterator refreshing automatically.
Not entirely sure about that part, but I'm guessing that this also applies to other classes extending PagesType, not just Languages.