• Stan Hu's avatar
    Cache FindCommit results in pipelines view · e37383d4
    Stan Hu authored
    For each pipeline, the controller will call `Pipeline#latest?` to
    determine if the pipeline's ref is the latest for that branch.
    Since it's likely that the same branches are being used in each
    pipeline, we can reduce Gitaly overhead by caching the results
    of the FindCommit call.
    e37383d4
pipelines_controller.rb 5.3 KB