diff options
author | Jared Norman <jared@super.gd> | 2019-03-20 14:51:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 14:51:56 -0700 |
commit | a0ff6b6c3594bc0a6df3e1800a382d0709f052c4 (patch) | |
tree | 6ecc44fb8912971ae28f40813164fb6aa960fb86 /lib/super_good/solidus_taxjar | |
parent | 132bf515857d04f79143650a529d956e3bfb44a1 (diff) | |
parent | 7c3c7f8041b3dc156f676119c34d0045ad7a820b (diff) |
Merge pull request #6 from SuperGoodSoft/feature/more-cache
Increase cache expiry time
Diffstat (limited to 'lib/super_good/solidus_taxjar')
-rw-r--r-- | lib/super_good/solidus_taxjar/tax_calculator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/super_good/solidus_taxjar/tax_calculator.rb b/lib/super_good/solidus_taxjar/tax_calculator.rb index 25339ac..e8e12f4 100644 --- a/lib/super_good/solidus_taxjar/tax_calculator.rb +++ b/lib/super_good/solidus_taxjar/tax_calculator.rb @@ -116,7 +116,7 @@ module SuperGood def cache if !Rails.env.test? - Rails.cache.fetch(cache_key, expires_in: 10.minutes) { yield } + Rails.cache.fetch(cache_key, expires_in: 3.hours) { yield } else yield end |