gitlab-ce/lib/gitlab/cache
Lin Jen-Shin 216bf78fd1 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.
2017-07-04 21:56:41 +08:00
..
ci Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
request_store_wrap.rb Introduce Gitlab::Cache::RequestStoreWrap 2017-07-04 21:56:41 +08:00