From 5b6ecef24b85304661c6b33ae4b15bf8805ad6a2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 27 Jan 2012 16:12:54 -0500 Subject: [PATCH] script to gc all feeds --- plugins/OStatus/scripts/gcfeeds.php | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 plugins/OStatus/scripts/gcfeeds.php 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"; + } +}