• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post_system hook and ob_flush()

#1
[eluser]mscahill[/eluser]
I'm attempting to use a post_system hook in order to launch off some maintenance functions (ie. optimize and backup tables, send e-mail notifications, etc). Unfortunately, I can't get ob_flush() to work with the post_system hook. I get no output from the buffer until the last maintenance function completes. I do have safeguards in place to ensure that only one copy of the maintenance functions are run per day. It just sucks for the poor bugger that logs in first, because they have to stare at a blank screen for close to 5 minutes. Of course, it they just hit refresh, it clears the buffer, and the maintenance functions continue to run in the background. Then they can continue to use the system as normal.

Any ideas on how to get the buffer to flush properly from a post_system hook?


Messages In This Thread
Post_system hook and ob_flush() - by El Forum - 02-18-2009, 10:42 AM
Post_system hook and ob_flush() - by El Forum - 02-18-2009, 12:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.