get rid of really old poco records once weekly

This commit is contained in:
friendica 2015-01-20 14:04:44 -08:00
parent 9d5e972013
commit 7875b79f2f
3 changed files with 10 additions and 1 deletions

View File

@ -158,6 +158,13 @@ function poller_run($argv, $argc){
mark_orphan_hubsxchans(); mark_orphan_hubsxchans();
// get rid of really old poco records
q("delete from xlink where xlink_updated < %s - INTERVAL %s",
db_utcnow(), db_quoteinterval('14 DAY')
);
/** /**
* End Cron Weekly * End Cron Weekly
*/ */

View File

@ -215,6 +215,8 @@ function poco_load($xchan = '',$url = null) {
dbesc($xchan), dbesc($xchan),
db_utcnow(), db_quoteinterval('2 DAY') db_utcnow(), db_quoteinterval('2 DAY')
); );
} }

View File

@ -1 +1 @@
2015-01-19.921 2015-01-20.922