 liquid = require('liquid.coffee')
 Memcached = require('memcached')
 
-lifetime = 2592000 # 30 days
+lifetime = 100 #2592000 # 30 days
 #
 # * Send the html
 # *

  #
  mod.render = (res, view, data = {}) ->

    ###
     * Get the latest flash message from the middleware
    ###
    data.messages = res.req.flash()

    memcached.get view, (err, html) ->
      console.log err
      console.log html
      if 'string' is typeof html

        return
      else
        filename = path.join(__dirname, '../views', view)+'.tpl'
        console.log 'FILENAME = '+filename
        fs.readFile filename, 'utf-8', (err, content) ->
          return res.req.next(err) if err
          template = liquid.Template.parse(content)
