mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 23:35:57 +08:00
fix: cache rollback
This commit is contained in:
@@ -171,6 +171,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user