Merge branch 'develop' into standalone_develop

This commit is contained in:
yystopf 2022-02-17 11:12:58 +08:00
commit 1100309038
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ class Project < ApplicationRecord
if changes[:is_public][0] && !changes[:is_public][1]
CacheAsyncClearJob.perform_later('project_rank_service', self.id)
end
if !changes[:is_public][0] && changes[:is_public][1]
$redis_cache.srem("v2-project-rank-deleted", self.id)
end
end
end