From ca909d8ff7f8c9c443b9f8104352487f09a39a89 Mon Sep 17 00:00:00 2001 From: Kaise Cheng Date: Mon, 1 Mar 2021 14:25:10 +0100 Subject: [PATCH] Revert "cache metadata" This reverts commit c1d9332044fca464193df7e8ebe099e77f1ec2af. --- x-pack/lib/filters/geoip/database_metadata.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/x-pack/lib/filters/geoip/database_metadata.rb b/x-pack/lib/filters/geoip/database_metadata.rb index 7928833324f..c71c296517c 100644 --- a/x-pack/lib/filters/geoip/database_metadata.rb +++ b/x-pack/lib/filters/geoip/database_metadata.rb @@ -28,13 +28,11 @@ def save_timestamp(database_path) metadata.each { |row| csv << row } end - @cache = metadata logger.debug("metadata updated", :metadata => metadata) end def get_all - @cache ||= file_exist?(@metadata_path)? - ::CSV.read(@metadata_path, headers: false) : Array.new + file_exist?(@metadata_path)? ::CSV.read(@metadata_path, headers: false) : Array.new end # Give rows of metadata in default database type, or empty array