diff --git a/app/models/item/create_task.rb b/app/models/item/create_task.rb index 094deca9..8e20d3dc 100644 --- a/app/models/item/create_task.rb +++ b/app/models/item/create_task.rb @@ -8,7 +8,6 @@ class Item def self.perform(id) Timeout::timeout(TIMEOUT_IN_SECONDS) do - Item.find(id).flex.sync expire_newest_items end end diff --git a/app/models/item/destroy_task.rb b/app/models/item/destroy_task.rb index e3eb5caf..ca14d3b5 100644 --- a/app/models/item/destroy_task.rb +++ b/app/models/item/destroy_task.rb @@ -8,7 +8,6 @@ class Item def self.perform(id) Timeout::timeout(TIMEOUT_IN_SECONDS) do - Item.find(id).flex.sync # TODO: it's kinda ugly to reach across classes like this CreateTask.expire_newest_items end diff --git a/app/models/item/update_task.rb b/app/models/item/update_task.rb index 2267b2c0..1e7bc0e4 100644 --- a/app/models/item/update_task.rb +++ b/app/models/item/update_task.rb @@ -10,7 +10,6 @@ class Item Timeout::timeout(TIMEOUT_IN_SECONDS) do item = Item.find(id) expire_cache_for(item) - item.flex.sync end end