|
@@ 1109-1112 (lines=4) @@
|
| 1106 |
|
|
| 1107 |
|
$cachekey = $this->ID . '_commit_' . $sha; |
| 1108 |
|
$cache = self::get_git_cache(); |
| 1109 |
|
if (!($result = $cache->load($cachekey))) { |
| 1110 |
|
$result = $repo->getCommit($sha); |
| 1111 |
|
$cache->save($result, $cachekey, ['gitonomy', 'commit', 'project_' . $this->ID]); |
| 1112 |
|
} |
| 1113 |
|
return $result; |
| 1114 |
|
} |
| 1115 |
|
|
|
@@ 1123-1126 (lines=4) @@
|
| 1120 |
|
public function getCommitMessage(\Gitonomy\Git\Commit $commit) { |
| 1121 |
|
$cachekey = $this->ID . '_message_' . $commit->getRevision(); |
| 1122 |
|
$cache = self::get_git_cache(); |
| 1123 |
|
if (!($result = $cache->load($cachekey))) { |
| 1124 |
|
$result = $commit->getMessage(); |
| 1125 |
|
$cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]); |
| 1126 |
|
} |
| 1127 |
|
return $result; |
| 1128 |
|
} |
| 1129 |
|
|