summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-04 17:48:45 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-04 21:56:41 +0800
commit216bf78fd154005cbf8ec447bfa23f77f6b26775 (patch)
tree3f2d89b3934865968f39adacd71e90f1bc0868ba /app
parent28553dbc05989b698777ee085aa2a357ffe576d2 (diff)
downloadgitlab-ce-216bf78fd154005cbf8ec447bfa23f77f6b26775.tar.gz
Introduce Gitlab::Cache::RequestStoreWrap
So that we cache the result of UserAccess#can_push_or_merge_to_branch? in RequestStore, avoiding querying ProtectedBranch over and over for the list of pipelines (i.e. in PipelineSerializer) I don't think this is ideal because I don't like the idea of RequestStore in general, but this is the easiest way to cache it without changing the architecture. In the future we should cache more explicitly rather than this kind of global store.
Diffstat (limited to 'app')
0 files changed, 0 insertions, 0 deletions