get rid of really old poco records once weekly
This commit is contained in:
parent
9d5e972013
commit
7875b79f2f
@ -158,6 +158,13 @@ function poller_run($argv, $argc){
|
||||
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
|
||||
*/
|
||||
|
@ -215,6 +215,8 @@ function poco_load($xchan = '',$url = null) {
|
||||
dbesc($xchan),
|
||||
db_utcnow(), db_quoteinterval('2 DAY')
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2015-01-19.921
|
||||
2015-01-20.922
|
||||
|
Reference in New Issue
Block a user