Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Memoize call to the workflow service
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 11, 2016
1 parent b6bfdb6 commit f7b0904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dor/models/processable.rb
Expand Up @@ -100,7 +100,7 @@ def cleanup
end

def milestones
Dor::Config.workflow.client.get_milestones('dor', pid)
@milestones ||= Dor::Config.workflow.client.get_milestones('dor', pid)
end

# @return [Hash{Symbol => Object}] including :current_version, :status_code and :status_time
Expand Down

0 comments on commit f7b0904

Please sign in to comment.