fix: old cache

This commit is contained in:
2021-10-25 18:03:56 +08:00
parent fa476732e5
commit 91f1f4090f
10 changed files with 53 additions and 60 deletions

View File

@@ -1,14 +1,14 @@
class CacheAsyncResetJob < ApplicationJob
queue_as :cache
def perform(type, id)
def perform(type, id=nil)
case type
when "platform_statistic_service"
Cache::V2::PlatformStatisticService.new.reset
when "project_common_service"
Cache::V2::ProjectCommonService.new(id).reset
when "user_statistic_service"
Cache::V2::PlatformStatisticService.new(id).reset
Cache::V2::UserStatisticService.new(id).reset
end
end
end