Oh FFS! Sorry please ignore me I found a rogue print_r($data) I was using to debug... It was the fact that it disappeared when the page was cached that was confusing me...
Any ideas why it would only print the $data sent from the controller once be…
It's dumping over 2000 lines of code above the tag in the form of all the arrays that are being passed to the view i.e.
Array
(
[@attributes] => Array
(
[count] => 1
[count_available] => 64
)
…