Oops, remove some remaining references to Flex
We uninstalled Flex, our Elasticsearch gem, to replace item search with direct DB queries; but I forgot these calls, oops! I also kinda want to see about deleting the resque tasks altogether, since I'm not sure how to get Resque installed on latest rails bc there seems to be a conflict over the version of Rack? And it'd be nice to get rid of the complexity if we can.
This commit is contained in:
parent
5d1cce293b
commit
44a00146aa
3 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue