Merge branch 'develop' into standalone_develop

This commit is contained in:
2022-02-17 11:12:58 +08:00

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