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

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Story Points 1
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.2.0 Sprint 1 [ 46 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.2.0 Sprint 1 [ 46 ] 4.2.0 Sprint 1, 4.2.0 Sprint 2 [ 46, 47 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 22 minutes [ 1320 ]
        Worklog Id 10365 [ 10365 ]
        Automated transition triggered when Jonathan Reissmueller created pull request #334 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #334 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          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