web47core 3.2.3.48 → 3.2.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/status_controller.rb +3 -5
- data/lib/web47core/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: 70781cb08eb5be20273e40a90835d91799d40c28c266631d5f905fcc8443047f
|
|
4
|
+
data.tar.gz: e876bd9972ca5ea75eb074578b98c1ba435e7100bd4c946b4ca9fa283fbe03cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e9c9401038a170e3acf2e6677aaa7f840742771036acf8d1f50c0234299892e150d05d0395fad30169359e6c700c9fe62fa2b8bf55cdf2ba9b6e16dbf1df3ae
|
|
7
|
+
data.tar.gz: e998d7542d10b5c21088697a883eb39ac8137da958b6e1e2d9712629465a5802ce11ec7b78831750bee238976e56c429827cbfd7828bb47a62d8674575a8c926
|
|
@@ -80,12 +80,10 @@ class StatusController < ActionController::Base
|
|
|
80
80
|
def cache_status
|
|
81
81
|
value = SecureRandom.hex(32)
|
|
82
82
|
key = "cache-status-check-#{SecureRandom.hex(16)}"
|
|
83
|
-
cache
|
|
84
|
-
|
|
85
|
-
cached_value = cache.read(key)
|
|
83
|
+
Rails.cache.write key, value, expires_in: 15.seconds
|
|
84
|
+
cached_value = Rails.cache.fetch(key)
|
|
86
85
|
unless value.eql?(cached_value)
|
|
87
|
-
raise "Cache not available
|
|
88
|
-
"but got #{cached_value.inspect}; write returned #{write_result.inspect}"
|
|
86
|
+
raise "Cache not available: Expected: #{value} with key #{key}, but got #{cached_value}"
|
|
89
87
|
end
|
|
90
88
|
|
|
91
89
|
report_success 'Cache Available', count: 1
|
data/lib/web47core/version.rb
CHANGED