• Gabriel Mazetto's avatar
    Change project cache key to depend on ID instead of full path · 19440e67
    Gabriel Mazetto authored
    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.
    19440e67
repository_cache.rb 1.04 KB