redis_page 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_controller/caching/redis_pages.rb +1 -4
- data/lib/redis_page/version.rb +1 -1
- data/lib/redis_page.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fad800d7547d5b35b0836350d471b1e2d322732
|
4
|
+
data.tar.gz: 516725e7a39182cc523023de228a85e7a7a684a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b8ea7538652f7eb91eac25624fb848ff801ab8a6ce08144d924c5b8c0a5d80caaf5533615ab674a50aec219b842ffe90210026e062509cea63b100bdaf3d073
|
7
|
+
data.tar.gz: a0a01404268ac04cb36cc0effa6bf36b26779a8ee51a91ded1dad8df8e931b2879393f52a2fc82c7842e0b4d8e4e6628420bcc091b09ebf66c6793c9515c1250
|
@@ -26,10 +26,7 @@ module ActionController
|
|
26
26
|
end
|
27
27
|
|
28
28
|
after_filter({only: actions}.merge(options)) do |c|
|
29
|
-
|
30
|
-
#path = URI(request.original_url).path
|
31
|
-
path = request.path
|
32
|
-
path = "#{path}-#{@cache_country}" if @cache_country
|
29
|
+
path = [request.path, @cache_country, RedisPage.compress_method].compact.join('-')
|
33
30
|
c.cache_redis_page(compress_content(response.body), path, options)
|
34
31
|
c.record_cached_page
|
35
32
|
end
|
data/lib/redis_page/version.rb
CHANGED
data/lib/redis_page.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saberma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|