forked from Gitlink/forgeplus
fix: cache rollback
This commit is contained in:
parent
90dbe0730a
commit
b11f5fd228
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue