cache_utils 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cache_utils/model.rb +1 -1
- data/lib/cache_utils/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: 6a3ff875c4fefd5263acfe0346d9ad0f93f83ac3
|
4
|
+
data.tar.gz: 1003099d130bc929f84ba8e799faa7e05adabc1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28820b2dc7ad3c02b8a8c6b4b99728cab11f73c0bc915454a859b04d44a2aa2d54dfd533b8b2147ac92dce475a069099a3a0500174337c4d574f3f80510b68a1
|
7
|
+
data.tar.gz: 326d4345a11184078a00f81e6c70130ac1049de18a3943674e2255abe2d67feb237e97e315593f0f91d84b77dd9dc9c0af94067561dc53c30803e342bcad5fc5
|
data/lib/cache_utils/model.rb
CHANGED
@@ -19,7 +19,7 @@ module CacheUtils
|
|
19
19
|
def purge_cache
|
20
20
|
class_keys = self.class.cache_key
|
21
21
|
class_keys += extra_class_key if respond_to?(:extra_class_key)
|
22
|
-
($redisw || $redis).del(*($redis.scan_each(match: custom_cache_key + '*').to_a + $redis.scan_each(match: class_keys + '*').to_a))
|
22
|
+
($redisw || $redis).del(*(($redisr || $redis).scan_each(match: custom_cache_key + '*').to_a + ($redisr || $redis).scan_each(match: class_keys + '*').to_a))
|
23
23
|
Appsignal.increment_counter('cache_purge', 1) if defined?(Appsignal)
|
24
24
|
end
|
25
25
|
end
|
data/lib/cache_utils/version.rb
CHANGED