From 19b80783c3498014d0a02a4efb2279a90d148764 Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Mon, 29 May 2017 16:23:59 +0300 Subject: [PATCH] Cleanup ETS table before inserting changes [minor] Deleted APIs where kept working until node restart. --- lib/annon_api/configuration/cache_adapters/ets.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/annon_api/configuration/cache_adapters/ets.ex b/lib/annon_api/configuration/cache_adapters/ets.ex index 7f1276d80..372c64056 100644 --- a/lib/annon_api/configuration/cache_adapters/ets.ex +++ b/lib/annon_api/configuration/cache_adapters/ets.ex @@ -50,6 +50,7 @@ defmodule Annon.Configuration.CacheAdapters.ETS do [] -> :ok objects when is_list(objects) -> + true = :ets.delete_all_objects(table_name) true = :ets.insert(table_name, objects) :ok end