mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix: privacy project not use cache
This commit is contained in:
@@ -86,6 +86,8 @@ class Cache::V2::ProjectCommonService < ApplicationService
|
||||
reset_project_common
|
||||
return
|
||||
end
|
||||
load_project
|
||||
return unless @project.is_full_public
|
||||
if @owner_id.present?
|
||||
if $redis_cache.hget(project_common_key, owner_id_key).nil?
|
||||
reset_project_owner_id
|
||||
@@ -224,6 +226,7 @@ class Cache::V2::ProjectCommonService < ApplicationService
|
||||
|
||||
def reset_project_common
|
||||
load_project
|
||||
return unless @project.is_full_public
|
||||
$redis_cache.del(project_common_key)
|
||||
reset_project_owner_id
|
||||
reset_project_name
|
||||
|
||||
Reference in New Issue
Block a user