From 61e1c51ef6ab9dec6246a1261a93b7d8a7fefad6 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 7 Sep 2014 20:03:29 -0400 Subject: [PATCH] run notif prune every 30mins disabled post edit log --- src/notifications.js | 2 +- src/postTools.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index f6869e1816..c8e4cd35f7 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -21,7 +21,7 @@ var async = require('async'), if (process.env.NODE_ENV === 'development') { winston.info('[notifications.init] Registering jobs.'); } - new cron('0 * * * *', Notifications.prune, null, true); + new cron('0/30 * * * *', Notifications.prune, null, true); }; Notifications.get = function(nid, callback) { diff --git a/src/postTools.js b/src/postTools.js index a162561740..595941fb09 100644 --- a/src/postTools.js +++ b/src/postTools.js @@ -101,7 +101,7 @@ var winston = require('winston'), return callback(err); } - events.logPostEdit(uid, pid); + //events.logPostEdit(uid, pid); plugins.fireHook('action:post.edit', postData); callback(null, results); });