Remove Gitlab::Geo::Fdw.expire_cache! method

parent d8d0f482
...@@ -7,12 +7,6 @@ module Gitlab ...@@ -7,12 +7,6 @@ module Gitlab
FOREIGN_SERVER = 'gitlab_secondary' FOREIGN_SERVER = 'gitlab_secondary'
FOREIGN_SCHEMA = 'gitlab_secondary' FOREIGN_SCHEMA = 'gitlab_secondary'
CACHE_KEYS = %i(
geo_FOREIGN_SCHEMA_exist
geo_foreign_schema_tables_match
geo_fdw_count_tables
).freeze
class << self class << self
# Return if FDW is enabled for this instance # Return if FDW is enabled for this instance
# #
...@@ -56,10 +50,6 @@ module Gitlab ...@@ -56,10 +50,6 @@ module Gitlab
end end
end end
def expire_cache!
Gitlab::Geo.expire_cache_keys!(CACHE_KEYS)
end
private private
def fdw_capable? def fdw_capable?
......
...@@ -138,14 +138,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do ...@@ -138,14 +138,6 @@ RSpec.describe Gitlab::Geo::Fdw, :geo do
end end
end end
describe '.expire_cache!' do
it 'calls Gitlab::Geo.expire_cache_keys!' do
expect(Gitlab::Geo).to receive(:expire_cache_keys!).with(Gitlab::Geo::Fdw::CACHE_KEYS)
described_class.expire_cache!
end
end
def with_foreign_connection def with_foreign_connection
Geo::TrackingBase.connection Geo::TrackingBase.connection
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment