[Bb-trac] [bbPress] #719: request: "$_POST store and redirect" api hook of some kind

bbPress bb-trac at lists.bbpress.org
Sun Aug 5 05:15:30 GMT 2007


#719: request: "$_POST store and redirect" api hook of some kind
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |       Owner:         
     Type:  enhancement  |      Status:  new    
 Priority:  low          |   Milestone:         
Component:  Back-end     |     Version:  0.8.2.1
 Severity:  minor        |    Keywords:         
-------------------------+--------------------------------------------------
 I have written several plugins now that have to redirect a page back to
 itself (as an external redirect) to clear post data which unfortunately
 seems to be the only way to do that due to browser limitations.

 What bothers me about this is that it makes bbpress load itself entirely,
 twice, for simple post data. It's not bbpress's fault or flaw of course,
 this is just the way the web mechanism has to work.

 But I'm wondering if some kind of simple hook could be made into bbpress
 which would capture the post data after it starts partially but before all
 the plugins are loaded, then redirect back and continue as normal so
 whatever plugin is looking for the $_POST can process it.

 Maybe a drop in replacement check for $_BBPOST['field']

 Obviously data storage is required here into mysql but certainly one call
 to save, another to load is faster than a second entire load of bbpress?

 Even without plugins using it, this technique could also be used to
 process the regular posts members make into topics since bbpress has to
 redirect itself the same way to clear the browser's $_POST data incase
 they hit F5. It technically would cut the database load in half for every
 post/edit.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/719>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list