raw_data in index.php

Discussion corner for Developers of Serendipity.
Post Reply
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

raw_data in index.php

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: raw_data in index.php

Post 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...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply