         )
       )
 
-    since = Timex.shift(Timex.now(), @in_last)
-
-    [in_last] =
-      Repo.all(
-        from(
-          pt in Tagging,
-          where: pt.tag_id in ^tag_ids and pt.inserted_at > ^since,
-          select: count(pt.id)
-        )
-      )
-
     Agent.update(__MODULE__, fn state ->
-      Map.put(state, title, %{total: total, in_last: in_last})
+      Map.put(state, title, %{total: total})
     end)
   end
 

  alias Osdi.{Repo, Tagging, Tag}
  import Ecto.Query
  require Logger

  @in_last [hours: -1]

  def start_link do
    Task.start_link(&update/0)

           Task.async(fn -> update_petition({title, tag_ids}) end)
         end)

    Enum.each(tasks, fn task -> Task.await(task, 20_000) end)
    Logger.info("Updated petition cache on #{Timex.now() |> DateTime.to_iso8601()}")
  end

