redis_page 0.1.8 → 0.1.9
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 +2 -2
- 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: a0ebb62533bb39ade8c23cce9eafdb0460cc9833
|
4
|
+
data.tar.gz: 2ebc37364789d21567587806bd4e4de9d4d4ff9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2566fb7284180a2262af4fcc7da6d1a90b617fb042463670852161d1997127bc80f5da06d404f1982dc8337348c186926f79a0d356e36c437d35545d749d33a6
|
7
|
+
data.tar.gz: 1c23943ea1004a0236ed237514be522636affa1310d6b1cbf960945d729c246c25e81e09eaa010fb58f6ac4f6f6691c5ae1c2c28cf2fdec47d910fb904cc3c41
|
@@ -26,13 +26,13 @@ module ActionController
|
|
26
26
|
after_filter({only: actions}.merge(options)) do |c|
|
27
27
|
path = request.path
|
28
28
|
path = "#{path}-#{@cache_country}" if @cache_country
|
29
|
-
c.
|
29
|
+
c.cache_redis_page(response.body, path)
|
30
30
|
c.record_cached_page
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
35
|
+
def cache_redis_page(content, path)
|
36
36
|
Rails.logger.info "[page cache]caching: #{path}"
|
37
37
|
RedisPage.redis.set(path, content)
|
38
38
|
end
|
data/lib/redis_page/version.rb
CHANGED