[aur-dev] Output buffering and header() usage
elij.mx at gmail.com
Tue Jun 21 16:24:30 EDT 2011
On Tue, Jun 21, 2011 at 9:19 AM, Dan McGee <dpmcgee at gmail.com> wrote:
> On Tue, Jun 21, 2011 at 11:11 AM, Lukas Fleischer
> <archlinux at cryptocrack.de> wrote:
>> Some possible solutions/workarounds that came into my mind:
>> * Just buffer output everywhere (ob_start(), ob_flush()).
>> * Rewrite package search to retrieve package search results before even
>> printing out anything.
>> Thoughts? I tend to prefer the latter, cause it seems to be the only
>> clean way (and the MVC way) of doing this.
> "Don't automatically redirect" is actually what I just did. Not
> because archweb had the bug, but I was finding the behavior annoying,
> and at least in the case where a package may or may not be in testing,
> sometimes the redirect happens while other times it doesn't.
> However, if you are going to do anything, I'd say package search
> itself should be refactored off into some library code, and once you
> get the results back you can actually start thinking about what to do
> with them.
I agree with Dan, and would like to additionally go on record as
More information about the aur-dev