Modular pages share shortcodes
Hi, I'm having trouble with modular pages, I have a bunch of modular pages with some [sections]. Each modular (sub)page contains a section with the same name.
The problem is that the shortcodes are added to the ShortcodeManager instance per request and are not cleared. That means that my three modular pages that each have a section [section name=first] all share the "first" section of the modular page that gets parsed first.
I suggest clearing the objects array before/after the processing of a (modular) page. For me adding $this->shortcodes->resetObjects() at the beginning of the processShortCodes function in shortcode-core.php works. But this breaks pages that also require rawHandlers (I don't).
It appears that #96 and #97 are the same bug. The issue is easy to catch when precache is in use. All pages rendered in the same thread carry processed sections from the first page rendered.