Page 1 of 1

raw_data in index.php

Posted: Sun Jul 26, 2015 5:22 pm
by onli
In our index.php, we open at the beginning a output buffer and fill in the end a smarty raw_data variable. This is done religiously, for example the freetag plugin does it as well when one searches for tags. But it seems never to be used, neither anywhere else in the core nor in any plugin. Can someone (Garinv?) shed some light on that variable? Is it used anywhere?

I am working on some routing improvements and index.php cleanups, and hope we can remove it from master. Without having that benchmarked yet, an unneeded buffer should cost performance.

Re: raw_data in index.php

Posted: Mon Jul 27, 2015 4:03 pm
by garvinhicking
Hey,

there are some plugins that echo'd some data at some point, so we had to do that for compatibility. Especially for themes with the old layout.php, and for the embed mode, and possibly for custom-made plugins.

But that would have to be thoroughly evaluated, not sure what it might break...