   # clear the cache for a site
   when 'cache:warm'
     DOMAIN = args[0]
+    debug_mode = true if args[1] is 'debug'
+    log 'DEBUG MODE' if debug_mode
     exit "must specify domain" unless DOMAIN
 
     # connect to DB

                result.push metrics
              return result
          }
        }

        metrics = []
        for metric, methods of data_config


      # request fn
      get = (url, next) ->
        if debug_mode
          time_start = Date.now() if debug_mode
          request {method: 'GET', url}, (err, resp, body) ->
            resp?.headers?.time = Date.now() - time_start
            next err, resp, body
        else
          request {method: 'GET', url}, next

      # update raw data
      cacheCount = (headers, type) ->
        x_cache = headers['x-cache']
        x_served_by = headers['x-served-by']

        RAW_DATA.CACHE[type] ?= {}
        RAW_DATA.CACHE[type].hit ?= 0
