run notif prune every 30mins

disabled post edit log
v1.18.x
barisusakli 11 years ago
parent a56ab7f15a
commit 61e1c51ef6

@ -21,7 +21,7 @@ var async = require('async'),
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
winston.info('[notifications.init] Registering jobs.'); 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) { Notifications.get = function(nid, callback) {

@ -101,7 +101,7 @@ var winston = require('winston'),
return callback(err); return callback(err);
} }
events.logPostEdit(uid, pid); //events.logPostEdit(uid, pid);
plugins.fireHook('action:post.edit', postData); plugins.fireHook('action:post.edit', postData);
callback(null, results); callback(null, results);
}); });

Loading…
Cancel
Save