redis_page 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis_page/sweeper.rb +3 -3
- data/lib/redis_page/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08046abef325b04f18408eb0ca83bf525cc38685
|
4
|
+
data.tar.gz: ac6fa86a6f497178b44ffccd5ed251b1043dae77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83999804c0d0fd45cca09ad93d3095fe4e55cad3b441cc9b207a87d72ffd8a3de51aa94ad906a7ac4f96e79643b62598ae2538c08bda143b0c309d08ace78110
|
7
|
+
data.tar.gz: 4eedadbcb27aaff0abd0fe7b6c495e7b6c60fe9176ec52f408b88e6aef0e764fb111e7bad083029b018ef69c3e369ba7cf4f94c3a2070a6748e72b553f587145
|
data/lib/redis_page/sweeper.rb
CHANGED
@@ -50,15 +50,15 @@ module RedisPage
|
|
50
50
|
|
51
51
|
def fetch_infos(urls)
|
52
52
|
urls.values.each do |info|
|
53
|
-
RedisPage::Sweeper.sweep
|
53
|
+
RedisPage::Sweeper.sweep(info, redis_page_queue_name)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
def self.sweep(info)
|
58
|
+
def self.sweep(info, queue)
|
59
59
|
Rails.logger.info "[page cache]add sweeper job: #{info['url']}-#{info['country']}"
|
60
60
|
|
61
|
-
Sidekiq::Client.push('queue' =>
|
61
|
+
Sidekiq::Client.push('queue' => queue, 'class' => SweeperWorker, 'args' => [info['url'], info['country']])
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
data/lib/redis_page/version.rb
CHANGED