         post.comments = comments
         callback null
 
-  getAllVotes = (post, callback) ->
+  getAllVotes = (post, cacheMax, callback) ->
 
     votes = []
 


    posts = null

    async.waterfall [
      (callback) ->
        headers =
          "Accept": JSON_TYPE
          "Authorization": "Bearer #{token}"
        url = "https://api.producthunt.com/v1/posts?day=#{day}"
        cacheGet url, token, headers, (err, body) ->
          if err
            callback err
          else


      url = "https://api.producthunt.com/v1/posts/#{post.id}/comments?" + qs.stringify(params)

      cacheGet url, token, headers, cacheMax, (err, body) ->
        if err
          callback err
        else
