Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2473

Only flush cron output buffer if there is one

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      The cron makes a call to ob_flush(), but as mentioned in this thread:
      https://www.blesta.com/forums/index.php?/topic/10503-cron-ob_flush-failed-to-flush-buffer/

      ..the buffer may not be set. You should be able to flush the buffer conditionally on whether any data is set to it, e.g.

      if (ob_get_contents()) {
          @ob_flush();
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Dec/17

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 22 minutes
              22m

                Agile