X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Ffixup_inboxes.php;h=2aa5d1690003c938c634e71ef5c631cc709db13f;hb=d9f27fcb148681f31e55a22ac911b0ea3d6a7940;hp=d55a538853cbab49bcd7c85eb5c7d61b8ba7c91c;hpb=6f12ed5f91b2ffa949fcff5c9bbb1f0da8d727b1;p=quix0rs-gnu-social.git diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index d55a538853..2aa5d16900 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -18,7 +18,7 @@ * along with this program. If not, see . */ -# Abort if called from a web server +// Abort if called from a web server if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { print "This script must be run from the command line\n"; exit(); @@ -46,7 +46,7 @@ if ($start_at) { } $cnt = $user->find(); -$cache = common_memcache(); +$cache = Cache::instance(); while ($user->fetch()) { common_log(LOG_INFO, 'Updating inbox for user ' . $user->id); @@ -76,6 +76,6 @@ while ($user->fetch()) { $inbox->free(); unset($inbox); if ($cache) { - $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id)); + $cache->delete(Cache::key('user:notices_with_friends:' . $user->id)); } }