diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 14:47:28 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 14:47:28 +0200 |
commit | 635ffe4841a850a074ff189a1791b64884af9621 (patch) | |
tree | 0c14091c7a221d1966f969353a9fe9a60465588a /app/helpers/projects_helper.rb | |
parent | 5309dad4599310a50883366c9cdf866465a89f11 (diff) | |
download | gitlab-ce-635ffe4841a850a074ff189a1791b64884af9621.tar.gz |
Cache readme rendering result
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index df1d630c89d..cef23a52e34 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -272,4 +272,8 @@ module ProjectsHelper current_user.recent_push(@project.id) end end + + def readme_cache_key + [@project.id, @project.commit.sha, "readme"].join('-') + end end |