+
+cachedRoutes    = {}
+cachedRouteTTL  = {}
+cachingTimeInMS = 30000
+
 module.exports = (options = {}, callback)->
 
   {dash} = require 'bongo'

      prefetchedFeeds['activity.main'] = activity  if activity
      queue.fin()

  dash queue, generateScript

  generateScript = ->
    html = createHTML()
    return callback null, html

  route = getRoute()
  if cachedRoutes[route]
    if (Date.now() - (cachedRouteTTL[route] || 0)  < cachingTimeInMS)
      console.log "#{route} cache is still valid"
      prefetchedFeeds = cachedRoutes[route]
      return generateScript()

  # todo  - implement this prefetching for all groups

