From 8f81762d68ede590e53b929c77602f0e2db0ddc2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Sep 2010 09:56:45 -0400 Subject: common_memcache() => Cache::instance() --- scripts/clearcache.php | 2 +- scripts/fixup_inboxes.php | 2 +- scripts/showcache.php | 2 +- scripts/uncache_users.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/clearcache.php b/scripts/clearcache.php index 0fb75daa0..8f54bc9ac 100644 --- a/scripts/clearcache.php +++ b/scripts/clearcache.php @@ -55,7 +55,7 @@ if (!empty($karg)) { print "Clearing key '$k'..."; -$c = common_memcache(); +$c = Cache::instance(); if (empty($c)) { die("Can't initialize cache object!\n"); diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php index d55a53885..7397d75d8 100755 --- a/scripts/fixup_inboxes.php +++ b/scripts/fixup_inboxes.php @@ -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); diff --git a/scripts/showcache.php b/scripts/showcache.php index 93b57a484..953ad1a77 100644 --- a/scripts/showcache.php +++ b/scripts/showcache.php @@ -55,7 +55,7 @@ if (!empty($karg)) { print "Checking key '$k'...\n"; -$c = common_memcache(); +$c = Cache::instance(); if (empty($c)) { die("Can't initialize cache object!\n"); diff --git a/scripts/uncache_users.php b/scripts/uncache_users.php index 5a1d33030..d8c0a025b 100644 --- a/scripts/uncache_users.php +++ b/scripts/uncache_users.php @@ -34,7 +34,7 @@ common_log(LOG_INFO, 'Updating user inboxes.'); $ids = file($id_file); -$memc = common_memcache(); +$memc = Cache::instance(); foreach ($ids as $id) { -- cgit v1.2.3-54-g00ecf