fastentry 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/fastentry/dashboard_controller.rb +7 -1
- data/lib/fastentry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f27ca9619d62710c4732d4e63e1ba78ff5ec2afb34011410dfa584ae6873f46
|
4
|
+
data.tar.gz: ca201d30c18a9120c40ee1b952bd8139585ef23ef094182b56026f8c6f4ea511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f81be650c101f6c0dc6fae64fc3bc34e04e196d227b96306ac36dc20adbdf0aca61e02ec856bc7fc131f74892c537c8a83a74afa21cf2c631f740faf29f40a
|
7
|
+
data.tar.gz: '0599a68ddb0f0133643bc5c358bebfd1f9481f34834b6c99256517e1525f853e751b821ca23dcebd74469f352355b1191256241da8313957cf525d88e2d0bd6a'
|
@@ -15,7 +15,13 @@ module Fastentry
|
|
15
15
|
|
16
16
|
@cached = []
|
17
17
|
@keys.each do |key|
|
18
|
-
|
18
|
+
# Prevent from crashing if expiration can't be read (temporary fix)
|
19
|
+
begin
|
20
|
+
expiration_date = Rails.cache.send(:read_entry, key, {}).expires_at
|
21
|
+
rescue
|
22
|
+
expiration_date = nil
|
23
|
+
end
|
24
|
+
|
19
25
|
@cached << {
|
20
26
|
cache_key: key,
|
21
27
|
cache_value: Rails.cache.read(key.to_s),
|
data/lib/fastentry/version.rb
CHANGED