 # Middleware
 PageSchema.post 'save',(doc)->
   debug "Saved: #{doc.link}"
+  analyzeQueue.push doc,(err)->
+    debug err if err
+    return debug "Analyzed."
 
 # Model Methods
 

      feed:feed._id
    ,(err,doc)->
      return callback err,null if err
      analyzeQueue.push doc
      return callback null,doc


# Create If Not Exists
PageSchema.statics.createIfNotExists = (article,feed,callback)->
  @findOne link:article.link,(err,doc)=>
    if err
      return callback err,null
    if doc
      debug "Already Registerd Link Is Published.#{article.link}"
      return callback null,null

    @upsertOneWithFeed article,feed,(err,page)->
      return callback err,null if err
      return callback null,page


exports.Page = Mongo.model 'pages', PageSchema


        keywords:keywords
      ,(err)->
        return callback err if err
        return callback()
  ,process.env.ANALYZEQUEUE || 2
