forked from Gitlink/forgeplus
14 lines
383 B
Ruby
14 lines
383 B
Ruby
class CacheAsyncResetJob < ApplicationJob
|
|
queue_as :cache
|
|
|
|
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::UserStatisticService.new(id).reset
|
|
end
|
|
end
|
|
end |