| ... | @@ -133,6 +133,7 @@ class Repository |
... | @@ -133,6 +133,7 @@ class Repository |
|
|
Rails.cache.delete(cache_key(:tag_names))
|
|
Rails.cache.delete(cache_key(:tag_names))
|
|
|
Rails.cache.delete(cache_key(:commit_count))
|
|
Rails.cache.delete(cache_key(:commit_count))
|
|
|
Rails.cache.delete(cache_key(:graph_log))
|
|
Rails.cache.delete(cache_key(:graph_log))
|
|
|
|
Rails.cache.delete(cache_key(:readme))
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def graph_log
|
|
def graph_log
|
| ... | @@ -159,4 +160,10 @@ class Repository |
... | @@ -159,4 +160,10 @@ class Repository |
|
|
def blob_at(sha, path)
|
|
def blob_at(sha, path)
|
|
|
Gitlab::Git::Blob.find(self, sha, path)
|
|
Gitlab::Git::Blob.find(self, sha, path)
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def readme
|
|
|
|
Rails.cache.fetch(cache_key(:readme)) do
|
|
|
|
Tree.new(self, self.root_ref).readme
|
|
|
|
end
|
|
|
|
end
|
|
|
end |
|
end |