BigW Consortium Gitlab

Commit 42849263 by Douwe Maan

Merge branch 'sh-appearance-cache-key-version' into 'master'

Use the GitLab version as part of the appearances cache key Closes gitlab-ee#5571 See merge request gitlab-org/gitlab-ce!18211
parents 702b4fec d209a054
......@@ -16,7 +16,7 @@ class Appearance < ActiveRecord::Base
has_many :uploads, as: :model, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
CACHE_KEY = 'current_appearance'.freeze
CACHE_KEY = "current_appearance:#{Gitlab::VERSION}".freeze
after_commit :flush_redis_cache
......
---
title: Use the GitLab version as part of the appearances cache key
merge_request:
author:
type: fixed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment