Skip to content

v1.0.33 — Fix unbounded view-data accumulation on the shared compiler across renders

Choose a tag to compare

@webwizo webwizo released this 24 Jun 05:23
· 3 commits to master since this release

Fixed

  • Fix unbounded growth of ShortcodeCompiler::$_viewData on the shared shortcode.compiler singleton. Since v1.0.32 (#88), view data merged on every View::renderContents() call was never released, causing $_viewData to grow linearly across independent, sequential top-level renders within a request (memory pressure on pages rendering many views). The fix resets $_viewData only at the top-level render boundary (Factory::doneRendering()), so nested-view data merging introduced in #88 is preserved while data from unrelated top-level renders no longer accumulates (#89).

Tests

  • Add package regression test ViewDataAccumulationTest verifying $_viewData does not accumulate across independent top-level renders, while nested renders still see merged parent data.