summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-08-31 15:04:51 +0100
committerSean McGivern <sean@gitlab.com>2016-08-31 15:12:31 +0100
commit52ab33a3fa1bd31e8e01ea8b9c89d8c08dbeff82 (patch)
tree102558fd8310b4161cde7afe6686492f9166189d /lib/api/notes.rb
parentee61c4037e5e85df8fb9e45a96df68fb0625c605 (diff)
downloadgitlab-ce-52ab33a3fa1bd31e8e01ea8b9c89d8c08dbeff82.tar.gz
Expire commit view partial after a dayexpire-commit-info-partials-sooner
We rarely use Russian-doll caching in views, and when we do, it's typically with a naturally-invalidating key. In the case of the commit partial, though, the author lookup isn't part of the cache key - because we're not going to use the state of the users table - and so a new email address can take up to two weeks to show against the commits list. Limiting this to a day still caches the partial for a healthy amount of time, without as bad a worst case scenario.
Diffstat (limited to 'lib/api/notes.rb')
0 files changed, 0 insertions, 0 deletions