diff options
author | Evan Prodromou <evan@status.net> | 2010-09-06 09:56:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-06 09:56:45 -0400 |
commit | 8f81762d68ede590e53b929c77602f0e2db0ddc2 (patch) | |
tree | d0b95b57e16e3ad5a478bc6f6118d734badc3ddb /scripts | |
parent | 6fe2429c4191bd4b7de8c7a512dfbf78571ddbaf (diff) |
common_memcache() => Cache::instance()
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/clearcache.php | 2 | ||||
-rwxr-xr-x | scripts/fixup_inboxes.php | 2 | ||||
-rw-r--r-- | scripts/showcache.php | 2 | ||||
-rw-r--r-- | scripts/uncache_users.php | 2 |
4 files changed, 4 insertions, 4 deletions
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) { |