Commit graph

8 commits

Author SHA1 Message Date
GitLab Bot
63a015fd85 Add latest changes from gitlab-org/gitlab@master 2020-02-03 18:08:46 +00:00
GitLab Bot
fb73ca3398 Add latest changes from gitlab-org/gitlab@master 2019-12-27 15:08:16 +00:00
Stan Hu
e884795e6c Revert "Merge branch '3062-improve-project-cache' into 'master'"
This reverts commit e65e184269, reversing
changes made to 646ba2418b.
2019-01-08 13:14:06 -08:00
Gabriel Mazetto
19440e6722 Change project cache key to depend on ID instead of full path
Previously, project cache used as part of the namespace the `full_path`,
which included namespace and project slug.

That meant that anytime a project was renamed or transfered to a
different namespace, we would lose the existing cache. This is not
necessary, nor desired.

I've prefixed cache key with `project:` to make it easy to find in redis
if necessary as well as make it possible to purge all project related
cache.

I've also switched the cache key type to go after the initial namespace
and not before.
2018-11-16 16:22:53 +01:00
gfyoung
c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Michael Kozono
3640292bf2 Cache Repository#exists? false in RequestStore
* Only truthy values are cached in Redis.
* All values are cached in RequestStore and in an instance variable.
2018-09-27 18:22:37 -07:00
Alejandro Rodríguez
bb2bf39ddf Cache #can_be_resolved_in_ui? git operations 2018-03-08 11:54:21 -03:00
Alejandro Rodríguez
5171e2f3d4 Refactor RepositoryCache to make it usable in other classes 2018-03-06 21:12:29 -03:00