mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	Merge branch 'hotfix/1.5.3' into develop
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
shared: &shared
 | 
					shared: &shared
 | 
				
			||||||
  version: '1.5.2'
 | 
					  version: '1.5.3'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
development:
 | 
					development:
 | 
				
			||||||
  <<: *shared
 | 
					  <<: *shared
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ class GlobalConfig
 | 
				
			|||||||
      if cached_value.blank?
 | 
					      if cached_value.blank?
 | 
				
			||||||
        value_from_db = db_fallback(config_key)
 | 
					        value_from_db = db_fallback(config_key)
 | 
				
			||||||
        cached_value = { value: value_from_db }.to_json
 | 
					        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
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      JSON.parse(cached_value)['value']
 | 
					      JSON.parse(cached_value)['value']
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user