From d4214cd78fe893ad911cc73a4dec21b1db7bbd58 Mon Sep 17 00:00:00 2001 From: Sojan Date: Mon, 22 Jun 2020 12:01:26 +0530 Subject: [PATCH] Bugfix: Invalid argument expiry in global config references: #976 --- config/app.yml | 2 +- lib/global_config.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/app.yml b/config/app.yml index cbcfd2d5b..f6ac215d9 100644 --- a/config/app.yml +++ b/config/app.yml @@ -1,5 +1,5 @@ shared: &shared - version: '1.5.2' + version: '1.5.3' development: <<: *shared diff --git a/lib/global_config.rb b/lib/global_config.rb index 8c1da224d..50bca4b13 100644 --- a/lib/global_config.rb +++ b/lib/global_config.rb @@ -31,7 +31,7 @@ class GlobalConfig if cached_value.blank? value_from_db = db_fallback(config_key) cached_value = { value: value_from_db }.to_json - $alfred.set(cache_key, cached_value, { expiry: DEFAULT_EXPIRY }) + $alfred.set(cache_key, cached_value, { ex: DEFAULT_EXPIRY }) end JSON.parse(cached_value)['value']