From: Evan Prodromou Date: Fri, 27 Jan 2012 21:12:54 +0000 (-0500) Subject: script to gc all feeds X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b6ecef24b85304661c6b33ae4b15bf8805ad6a2;p=quix0rs-gnu-social.git script to gc all feeds --- diff --git a/plugins/OStatus/scripts/gcfeeds.php b/plugins/OStatus/scripts/gcfeeds.php new file mode 100644 index 0000000000..59656aff9b --- /dev/null +++ b/plugins/OStatus/scripts/gcfeeds.php @@ -0,0 +1,41 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); + +$helptext = <<fetch()) { + print $feedsub->uri . "(" . $feedsub->sub_state . ")"; + $result = $feedsub->garbageCollect(); + if ($result) { + print " INACTIVE\n"; + } else { + print " ACTIVE\n"; + } +}