summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-09 14:47:28 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-09 14:47:28 +0200
commit635ffe4841a850a074ff189a1791b64884af9621 (patch)
tree0c14091c7a221d1966f969353a9fe9a60465588a /app/views/projects/show.html.haml
parent5309dad4599310a50883366c9cdf866465a89f11 (diff)
downloadgitlab-ce-635ffe4841a850a074ff189a1791b64884af9621.tar.gz
Cache readme rendering result
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index d9cff805575..19ac6dacf7d 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -49,7 +49,8 @@
%i.fa.fa-file
= readme.name
.wiki
- = render_readme(readme)
+ = cache(readme_cache_key) do
+ = render_readme(readme)
- else
%h3.page-title
This project does not have README yet